Asp教程

通过asp实例结合结合ACCESS,MSSQL来更好的深入Asp学习 - 爬坡者

« 较完善的CSS样式表管理模式Access导出到Excel及EXCEL导入到ACCESS »

一个兼容的清除浮动方法

关键的地方
div.container {
border: 1px solid #000000;
width:100%;
overflow: hidden;
}

定义
width:100%;在ie6就可清除浮动100%随便定 也就是给各宽度就可

定义 overflow: hidden;
firefox 下清除浮动


<html>
<head>
<style type="text/css">
div.left { 
 width: 45%; 
 float: left; 
 background-color:#0f0;
 height:200px;

div.right { 
 width: 45%; 
 float: right;
 background:#ff0;
 height:300px;

div.container { 
 border: 1px solid #000000; 
width:100%;
overflow: hidden;


div.footer{
 background:#ff0;
  height:90px;
margin-top:8px;
}


</style>
</head>
<body>
<div class="container">
<div style="clear:both"> 
   <div class="left">今在PlanABC看到另外这种方法,特些记录下来。 </div> 
  <div class="right">今在PlanABC看到另外这种方法,特些记录下来。</div> 
</div>
</div>
<div class="footer">footer</div>
</body>
</html>

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80710

Copyright 2007-2008 papozhe.com [asp教程] All Rights Reserved.
浙ICP备07030537号
免责申明:所有文章除特别声明,均来自网上,主要为学习用!内容仅供参考,版权归原作者。如侵犯您利益,请来信告知.
Email:papozhe$Gmail.com QQ:76336503