0
我從來沒有使用過Modernizr。所以看了一篇文章,發現一些帶有前綴字的cssModernizr&html新功能和樣式
.no-cssgradient.how the below style will be applied.
.no-js .glossy,
.no-cssgradients .glossy {
background: url("glossybutton.png");
}
.cssgradients .glossy {
background-image: linear-gradient(top, #555, #333);
}
上面的樣式是什麼意思....它是如何工作的?
4)如何自動應用樣式?
/* In your CSS: */
.no-audio #music {
display: none; /* Don't show Audio options */
}
.audio #music button {
/* Style the Play and Pause buttons nicely */
}
<!-- In your HTML: -->
<div id="music">
<audio>
<source src="audio.ogg" />
<source src="audio.mp3" />
</audio>
<button id="play">Play</button>
<button id="pause">Pause</button>
</div>
我得到了網站的代碼片段。類名如.no-cssgradients或.no-audio如何使用這些樣式將如何應用?
請詳細說明一下我的例子。謝謝