展会信息港展会大全

css 高度自适应代码与自适应高度css兼容ie,firefox
来源:互联网   发布日期:2016-03-25 16:19:10   浏览:1965次  

导读: 这里我们定义了boxout与boxinside两个class,我现在要做的就是让boxout高度去自动适应boxInside的高度变化,好了现在我们来定义css代码<html xmlns...

这里我们定义了boxout与boxinside两个class,我现在要做的就是让boxout高度去自动适应boxInside的高度变化,好了现在我们来定义css代码

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>css 高度自适应代码与自适应高度css兼容ie,firefox</title>

</head>

<style type="text/css">

.boxOut{

height:100%;

width:200px;

border:1px solid #990000;

float:left;

overflow:hidden;

}

.boxInside{

height:500px;

width:100px;

background:#0000CC;

}

</style>

<body>

<!-- -->

<div class="boxOut">

<div class="boxInside">

</div>

</div>

</body>

</html>

本站原创文章转载注明来自www.111cn.net

赞助本站

人工智能实验室

相关热词: 开发 编程 android

相关内容
AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港