<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>js字体css变化参考</title> <style type="text/css"> .h2{font-size: 150%;} .h3{font-size: 200%;} .h4{font-size: 250%;} body{font-family: 隶书;} </style> </head> <body> <h5 align="center">早发白帝城</h5> <p class="h5"align="center">李白</p> <p class="h1" align="center">朝辞白帝彩云间,</p> <p class="h2" align="center">千里江陵一日还。</p> <p class="h3" align="center">两岸猿声啼不住,</p> <p class="h4" align="center">轻舟已过万重山。</p> </p> </body> </html>