HTML5¼¼Êõ

H5·ÖÀ¸£¨µÚÒ»Õ£© - youchim

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2016-11-04 13:00 ÎÒÒªÆÀÂÛ( )

Ò³Ãæ½á¹¹ header, nav, article, footer { border padding header { width nav { float width height article { float width height footer { clear width header Í·²¿²¿·Ö nav ²Ëµ¥µ¼º½ËµÃ÷²¿·Ö article ÄÚÈÝ˵Ã÷²¿·Ö footer µ×²¿ËµÃ÷²¿·Ö ÆÕͨhtml ·ÖÀ¸ ht

 

Ò³Ãæ½á¹¹ header, nav, article, footer { border padding header { width nav { float width height article { float width height footer { clear width header Í·²¿²¿·Ö nav ²Ëµ¥µ¼º½ËµÃ÷²¿·Ö article ÄÚÈÝ˵Ã÷²¿·Ö footer µ×²¿ËµÃ÷²¿·Ö

ÆÕͨhtml ·ÖÀ¸

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>htmlÒ³Ãæ½á¹¹</title>
<style>
#header, #nav, #article, #footer {
border: solid 1px #666;
padding: 5px;
}

#header {
width: 500px;
}
/*×ó±ß²Ëµ¥*/
#nav {
float: left;
width: 60px;
height: 100px;
}
/*Óұ߲˵¥*/
#article {
float: left;
width: 428px;
height: 100px;
}

#footer {
clear: both;
width: 500px;
}
</style>
</head>
<body>
<div>
µ¼º½²¿·Ö
</div>
<div>
×ó±ßÄÚÈÝ
</div>
<div>
ÓÒ±ßÄÚÈÝ
</div>
<div>
µ×²¿
</div>

</body>
</html>

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • Òƶ¯Ç°¶ËС½á-µÚÒ»Õ¡£ - °¢Ñ¶Ð¡·É

    Òƶ¯Ç°¶ËС½á-µÚÒ»Õ¡£ - °¢Ñ¶Ð¡·É

    2016-08-23 14:00

  • 2015ÉúÃüÖ®ÂÃ---µÚÒ»Õ - @ÇåµÀ·ò

    2015ÉúÃüÖ®ÂÃ---µÚÒ»Õ - @ÇåµÀ·ò

    2015-10-28 09:34

  • µÚÒ»ÕÂHTML¸ÅÊöÓë½á¹¹_HTML½Ì³Ì

    µÚÒ»ÕÂHTML¸ÅÊöÓë½á¹¹_HTML½Ì³Ì

    2015-09-24 14:03

ÍøÓѵãÆÀ
Ð