What does the selector [class^=“span”] do?

前端 未结 3 1462
长发绾君心
长发绾君心 2020-12-14 05:45

I can\'t work out what this is:

Line 33 of http://twitter.github.com/bootstrap/assets/css/bootstrap-1.2.0.min.css

.row [class^=\"span\"] {
  display:         


        
3条回答
  •  心在旅途
    2020-12-14 06:18

    That is an attribute selector, specifically one of the CSS3 substring-matching attribute selectors.

    This rule applies styles to any element whose class attribute begins with span (^= means "starts with"), that occurs in any element with the class row.

提交回复
热议问题