根据CSS 定义,font-weight可以使用短语或者数字格式表示。 短语的有效值为:nomral bold lighter bolder。 数字有效值为100-900。 100 到 900 之间的数值大致对应如下的常见粗细值名称。lighter和bolder会基于父元素继承,这里不讨论。 图像1: Weight mappings for a font family with 300 and 600 weight faces 从上...
1 我们新建一个html网页文件,把他命名为test.html,接下来我们用test.html文件来讲解html利用font-weight标签对文本加粗或不加粗。2 在test.html文件内,要使用div标签创建两行文字,并且把文字内容写上“html利用font-weight标签对文本加粗”,“html利用font-weight标签对文本不加粗”。3 给div标签加上一个样式,...
在使用 blog.zengrong.net 的CSS中,遇到font-weight设置导致在Windows系统上网页加粗效果不显示的问题。解决方案是将font-weight的值更改为bold,解决了这个问题。font-weight在CSS中可以通过短语或数字表示,短语如normal、bold、lighter、bolder,数字范围为100-900。理论上,400代表normal,700代表bold。浏...
【单选题】以下声明中,不可以加粗文本的有:A. font-weight:bolder; B. font-weight:bold; C. font-weight:norma
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
MDN的说明
下列不可以表示文字加粗的是( ) A. html中使用标签 B. html中使用标签 C. 用css中font-weight: bold D. 用css中font-style:strong 相关知识点: 试题来源: 解析 A. html中使用标签B. html中使用标签C. 用css中font-weight: bold D. 用css中font-style:strong ...
唐巧,2012年从网易有道离开参与创业, 目前是猿题库iOS高级研发工程师。难得的是,他本身是一线的iOS...
从蓝湖上复制的 font-weight: 400 字体样式,非常奇怪,在 iOS 上显示正常,但是 android 上毫无效果。 但是改成 font-weigth: bold 就能看出效果了,可是有点过粗了。。。 在官方论坛上找到了解释: https://developers.weixin.qq.com/community/develop/doc/000686a28a00a05646d71125251000 ...