What is the REGEX of a CSS selector

前端 未结 9 2005
你的背包
你的背包 2021-02-02 12:27

I\'d like to parce a CSS file and add before every CSS selector another selector.

From:

p{margin:0 0 10px;}
.lead{margin-bottom:20px;font-size:21px;font-         


        
9条回答
  •  礼貌的吻别
    2021-02-02 12:55

    So finally I've found a way better way to do it.

    I use a LESS editor (eg: http://lesstester.com/)

    and simply nest my whole css file: .mySelector{ your css here }

提交回复
热议问题