<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>三列自适应等高且中列宽度自适应 - www.52CSS.com</title>
<style type="text/css">
a{ color:#30C;}
.wrap{overflow:hidden;}
.left{width:250px;float:left; background:#FC9;}
.right{width:250px;float:right;background:#FC9;}
.center{ background:#FC0;_float:left; overflow:hidden;}
.row{margin-bottom:-10000px;padding-bottom:10000px;}
</style>
</head>
<body>
<div class="wrap">
<div class="left row"><a href="#">www.52css.com</a></div>
<div class="right row">
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
</div>
<div class="center row">
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<a href=" http://www.52css.com/">www.52css.com
/>
<span style="float:right; position:relative;"> </span> <!--for ie6-->
</div>
</div>
</body>
</html>
css 三列自适应等高问题
答案:2 悬赏:30 手机版
解决时间 2021-04-29 05:23
- 提问者网友:富士山上尢
- 2021-04-29 02:07
最佳答案
- 五星知识达人网友:渊鱼
- 2021-04-29 02:17
左右的宽都固定了 中间的就是自动了啊
全部回答
- 1楼网友:你哪知我潦倒为你
- 2021-04-29 03:39
.left{width:250px;float:left; background:#FC9;} .right{width:250px;float:right;background:#FC9;} .center{ background:#FC0;_float:left; overflow:hidden;}
=========
主要是这个代码。
left和right定义宽度为固定的250px;而中间的没定义宽带。默认是充满页面。所以达到自适应的目的
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯