原来的教程链接打不开了,我重新发布一下。 问:如下selector: .show-grid [class*="span"] { background-color: #eee; text-align: center; border-radius: 3px; min-height: 30px; line-height: 30px; } 有哪位童鞋知道这种写法? 答: 这是一个属性通配符selector. 在你提供的例子中, 会在引用了.show-grid 样式的容器内查找包含span样式的任何元素并设置对应的样式 下面这个例子中, 将会找到 <strong> 组件. <div class="show-grid"> <strong class="span6">Blah blah</strong> </div> 你也可以定义'以... 开始'的样式, 例如: div[class^="something"] { } 将会查找到如下的组件:- <div class="something-else-class"></div> 亦可以定义 '以...结尾' div[class$="something"] { } 将会查找到如下组件 <div class="you-are-something"></div> |
http://bbs.maxthon.cn/thread-603-1-4.html 然而这个版块基本上没人来看了,旧论坛关闭了,我也有好多的帖子没法转移了。 |
YaopK 发表于 2017-1-23 23:07 MX5需要使用Stylish插件,广告过滤换了ADP之后就不能修改CSS了 |