为什么控制台输出解析出错?
解析 'font' 的值时出错。 声明被丢弃。
而且字体也不是楷体?
#one
{
font:"楷体";
}
<p id="one">大家好!</p>
巴扎黑2017-04-17 11:36:57
font-family
is specially used to set fonts
If you use the abbreviation font
, it must have at least two values of font size and font, such as
font:12px "Arial";
高洛峰2017-04-17 11:36:57
I know, it turns out that the style attribute in
font: means italics, not the font!