源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> <style> p.normal { font-weight: normal; } p.light { font-weight: lighter; } p.thick { font-weight: bold; } p.thicker { font-weight: 900; } </style> </head> <body> <p class="normal">这是一个段落.</p> <p class="light">这是一个段落.</p> <p class="thick">这是一个段落.</p> <p class="thicker">This is a paragraph.</p> </body> </html>
运行结果