html 界面 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>css3第一节课</title> <!-- <style type="text/css"> h2{text-align: center;} p{ font-size: 16px; font-family: "楷体"; color: mediumvioletred; text-decoration: underline; } </style> --> <style type="text/css"> #aquamarine{color: aquamarine;} .aqua{color: aqua;} .font55{font-size: 55px;} #font88{font-size: 88px;} .ddd{color: #C71585;} #s5{font-size: 999px;} .one{letter-spacing: 20px;} .two{word-spacing: 20px;} .three{line-height: 150%;} .four{text-decoration: underline;} .five{text-decoration: overline;} .six{text-decoration: line-through;} .seven{text-decoration:overline line-through underline;} p{ text-decoration: underline; font-size: 隶书; } </style> <!-- <link rel="stylesheet" type="text/css" href="硕一房一厅访谈法阳光宝贝%20.css"/> --> </head> <body> <h2 id="aquamarine" align="center">内嵌式css样式</h2> <h3 class="aqua font55" align="center">nidhninasiuhniugi</h3> <h6 class="ddd" align="center">jsfjkjnnigdinjngoguijgioudj</h6> <h4 id="s5">gds</h4> <p class="one two">asdfghkjl</p> <p class="five">asdasff</p> <p class="five">sadafasfasd</p> <p class="three">afsadfas</p> <p class="seven">dsagsdgagsadfasg</p> <p class="six" align="center">使用style标签可定义内嵌式css样式表,style标签一般位于head头部标签,title标签之后‘。</p> </body> </html> css界面 h2{text-align: center;} p{ font-size: 16px; font-family: "楷体"; color: mediumvioletred; text-decoration: underline; }