<head>
<style>
.thisOne{ background: red;}
div[class*="thisTwo"] { background: green}
</style>
</head>
<body>
<div class="thisOne">
<p id="hello">Hello World</p>
</div>
<div class="thisTwo">
<p id="hello">Hello World</p>
</div>
</body>
我不知道这是这种方式之间的不同来选择更多的见解:需要这个CSS选择
.thisOne{ background: red;}
div[class*="thisTwo"] { background: green}
他们这样做几乎同样的工作,对吧?为什么2选择器更进一步呢?
你是什么意思的“更先进”? – BoltClock 2012-02-10 13:28:49