css加粗属性是什么

css加粗属性是什么,好像以前的b标签取消了,为了规范化,整在css里了

哈尼露易丝
浏览 2989回答 13
13回答

慕莱坞9220042

你好:CSS font-weight 属性例子:<html> <head> <style type="text/css"> p.normal {font-weight: normal} p.thick {font-weight: bold} p.thicker {font-weight: 900} </style> </head> <body> <p class="normal">This is a paragraph</p> <p class="thick">This is a paragraph</p> <p class="thicker">This is a paragraph</p> </body> </html>望采纳!

剩下的盛夏3387031

strong  或者 b

田心枫

strong 标签 或bold

刚毅87

strong 标签和 css 样式 font-weight 都可以设置,font-weight有两个属性 bold 和 bolder, 还可以通过设置数值来改变粗细程度.望采纳

LuckDog

现在建议用css控制,就是font-weight了,这个取值是100到900;400以后明显加粗,也可以用英文bold的。

一杯2块的奶茶

你可以用<strong></strong>标签或者css:font-weight
打开App,查看更多内容
随时随地看视频慕课网APP