【发布时间】:2013-02-01 13:27:22
【问题描述】:
这是我的css:
@CHARSET "UTF-8";
.commandLinks {
margin: 5px;
padding: 5px 5px 5px 20px; /* 20px makes room for your background image */
/*border: 1px solid #aaa; */
}
.commandLinks .create {
margin-right: 10px;
color: red;
}
.commandLinks .vote {
color: blue;
}
.commandLinks .link {
color: orange;
font-weight: bold;
font-size: 16;
}
.button {
margin-right: 10;
margin-left: 5;
}
我尝试了不同的方法,刷新浏览器 CTRL - F5,重新启动 Eclipse 等。 但是字体大小:16;或
margin-right: 10;
margin-left: 5;
无论如何都不会出现。 例如,当我添加 font-weight: bold;看起来没有问题。
我的jsf代码:
<div id="links" class="commandLinks" >
<h:link styleClass="link" outcome="Answers">answers</h:link>
</div>
我做错了什么或如何刷新 css?
【问题讨论】:
-
试过用
16px代替16? -
@harsh8888:谢谢,它有效。
-
我将其作为对类似问题的参考的答案发布。