前端开发设置字体粗细
可用属性值:lighter、bold、bolder、normal和100~900(100整数倍)
normal:400
bold:700
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <style type="text/css"> .p1 { font-weight: lighter; } .p2 { font-weight: 100; } .p3 { font-weight: bold; } </style> </head> <body> <p class="p1">这是个段落标签1</p> <p class="p2">这是个段落标签2</p> <p class="p3">这是个段落标签3</p> </body> </html>