?? ?? ?? ? ??
?? ??? ??? ??? ??? ????? ???? ??? ??? ??? ????. CSS?? ??? ??? ??? ?? ?? ??? ??? ?????.
??? ??? ?? ??(?? ??) = ?? ??? + ?? ??? + ?? ?? + ??? ?? + ??? ?? + ??? ??? + ??? ???.
??? ??? ???????.
?:
css ??:
div{ width:200px; padding:20px; border:1px solid red; margin:10px; }
html ??:
<body> <div>文本內(nèi)容</div> </body>
??? ?? ??: 10px+1px+20px+200px +20px+ 1px+10px=262px. ??? ?? Chrome ?????? ?? ?? ??? ? ? ????.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>寬度和高度</title> <style type="text/css"> li{ border-bottom:1px dotted #ccc; width:200px;height:30px; } </style> </head> <body> <ul> <li>別讓不會(huì)說話害了你</li> <li>二十七八歲就應(yīng)該有的見識(shí)</li> <li>別讓不好意思害了你</li> </ul> </body> </html>