abstract:<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS</title> <style> body{margin:0;} .main{margin:0px auto; width:500
<!doctype html> <html> <head> <meta charset="utf-8"> <title>CSS</title> <style> body{margin:0;} .main{margin:0px auto; width:500px; padding:10px;} .title{ width:100%;height:50px; line-height:50px; text-align:center; font-size:24px; background-color:#09F; color:#FFF; margin-bottom:5px;} .title2{ width:100%;height:50px; line-height:50px; text-align:center; font-size:24px; border:1px solid #09F; margin-bottom:5px;} .title3{ width:100%;height:50px; line-height:50px; text-align:center; font-size:24px; border-bottom:2px solid #09F; margin-bottom:5px;} </style> </head> <body> <div class="main"> <div class="title">PHP中文网</div> <div class="title2">PHP中文网</div> <div class="title3">PHP中文网</div> </div> </body> </html>
Correcting teacher:天蓬老师Correction time:2019-01-30 16:36:53
Teacher's summary:只看到的边框的练习, 背景有很多的样式, 不仅是背景色, 试试其它的