榪欎釜鏄竴涓緢嫻佽鐨勬竻闄ゆ誕鍔ㄧ殑鏂規(guī)硶錛屽湪寰堝澶ч」鐩笂宸茬粡琚畬鍏ㄩ噰鐢ㄣ?br />榪欎釜鏂規(guī)硶鏉ユ簮浜?a target="_blank" style="color: #2c6288; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; ">positioniseverything 錛岄氳繃after浼被:after鍜孖Ehack鏉ュ疄鐜幫紝瀹屽叏鍏煎褰撳墠涓繪祦嫻忚鍣ㄣ?/p>
<style type="text/css"> .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } .clearfix {display: inline-block;} /* for IE/Mac */ </style><!-- main stylesheet ends, CC with new stylesheet below... --> <!--[if IE]> <style type="text/css"> .clearfix { zoom: 1; /* triggers hasLayout */ <span style="color: #aa0000;">display: block; /* resets display for IE/Win */</span> } /* Only IE can see inside the conditional comment and read this CSS rule. Don't ever use a normal HTML comment inside the CC or it will close prematurely. */ </style> <![endif]-->
Update @ 2008.11.12
鍒氬垰鐪嬪埌涓綃囨棩蹇?/a>璇磋繖涓棶棰橈紝鍙楀埌浜?jiǎn)鐐瑰惎鍙戝Q?/p>.clearfix:after { content: "020"; display: block; height: 0; clear: both; } .clearfix { zoom: 1; }
榪欎釜鏄紭鍖栫増鐨勬竻闄ゆ誕鍔ㄧ殑鏍峰紡錛屽緢鍊煎緱鎺ㄨ崘銆?/p>
鍙﹀錛屾垜瑙佸埌浜?jiǎn)涓涓?a target="_blank" style="color: #2c6288; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; ">鏃犳晫鐨勬竻闄ゆ誕鍔ㄧ殑鏍峰紡
錛岃繖涓槸閫氳繃鐙珛鐨勪唬鐮佹潵娓呴櫎鐨勩?/p>
html body div.clear, html body span.clear { background: none; border: 0; clear: both; display: block; float: none; font-size: 0; margin: 0; padding: 0; overflow: hidden; visibility: hidden; width: 0; height: 0; }
榪欎釜鏍峰紡鍙互閫氳繃鍦ㄩ〉闈腑娣誨姞<div class=”clear”></div> 鎴?<span class=”clear”> </span>鏉ユ竻闄ら〉闈腑鐨勬誕鍔ㄣ?/p>
榪欎釜欏甸潰姝f槸钁楀悕鐨?a target="_blank" style="color: #2c6288; text-decoration: none; outline-style: none; outline-width: initial; outline-color: initial; ">960 CSS 妗嗘灦鐨勪綔鑰呯殑鍗氬銆傝屼粬鍗村湪960 CSS妗嗘灦涓?strong>鍚屾椂浣跨敤浜?jiǎn)杩欎袱绉嶆栆?guī)硶銆?/p>