css怎樣去掉h1的粗體樣式
本教程操作環(huán)境:windows7系統(tǒng)、CSS3&&HTML5版、Dell G3電腦。
css怎樣去掉h1的粗體樣式
在css中可以利用font-weight屬性來去掉h1的粗體,該屬性的作用就是設置文本的粗細。當屬性值為normal是表示定義一個標準字符。
立即學習“前端免費學習筆記(深入)”;
示例如下:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <style type="text/css"> h1{ font-weight:normal; } </style> <h1>這是去掉了粗體的hi標簽</h1> </body> </html>
輸出結(jié)果:
(學習視頻分享:css視頻教程)
以上就是css怎樣去掉h1的粗體樣式的詳細內(nèi)容,更多請關注有啊網(wǎng)站百科其它相關文章!
相關閱讀:
- 喜歡(10)
- 不喜歡(1)