HTML+CSS? ?? ??? ? ?? ?? ?? ??
?? ?? ??? ??????
HTML??? <div>, <p>, <h1>, <form>, <ul> ? <li>
display:block? ???? ?? ??? ?? ?? ??? ???? ????. ?? ??? ??? ?? a? ?? ??? ???? a ??? ?? ??? ??? ??? ???.
a{display:block;}
?? ?? ?? ??:
1 . ? ?? ?? ??? ? ??? ???? ? ??? ??? ? ??? ?????. (?? ?????. ?? ?? ??? ? ?? ?????.)
2. ??? ??, ??, ? ??, ?? ? ??? ??? ??? ? ????.
3. ??? ??? ???? ?? ?? ??? ???? ?? ? ??? ??? ?? ????? 100%???(?? ??? ??? ??).
a ??? ?? ??? ???? ??? ???????.
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>!important</title> <style type="text/css"> a{ display:block; width:100px; height:18px; background-color:green; /*設(shè)置背景色*/ color:#fff; /*設(shè)置字體顏色*/ } </style> </head> <body> <a href="#">PHP中文網(wǎng)</a> </body> </html>