我希望把脚本标记中像这样(计算器)页:一些CSS属性不工作
<noscript>Your browser has JavaScript turned off !</noscript>
但是,评论性不工作:
noscript{
width:100%; // I want it to be 100% of parent container width - it's not.
text-align:center;
background-color:crimson;
color:white;
font-weight:bold;
margin-top:10px; // doesn't work
padding-top:7px;
margin-bottom:10px; // doesn't work
padding-bottom:7px;
}
请提及版本的浏览器。 – diEcho 2012-07-31 04:32:05
它不工作,因为你没有显示:块; – Zaffy 2012-07-31 04:32:51