【发布时间】:2017-09-18 14:42:34
【问题描述】:
我的段落是黑色的,即使我指定了一种(支持)颜色。
错误似乎在哪里?
我如何解决它?
谢谢!
HTML 代码:
<div id="welcome">
<p>
<center><b><em> AaBbCcDdEeFfGgHh</em></b></center>
</p>
</div>
CSS 代码:
body {
background: -webkit-linear-gradient(left,#2e4053,#212F3C);
background: -o-linear-gradient(left,#2e4053,#212F3C);
background: -moz-linear-gradient(left,#2e4053,#212F3C);
background: linear-gradient(left,#2e4053,#212F3C);
background-color:#2e4053;
}
p{
font-family:Noto Sans Sinhala;
src: url('Font/NotoSansSinhala-Regular.ttf');
font-style: ;
font-size:50%;
color:#f4f6f7 !important;
font-weight:500;
}
【问题讨论】:
-
为什么要使用“font-style: ;”?