首页 > 其他 > 详细

左侧固定中间自适应

时间:2020-09-26 09:23:42      阅读:32      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>

<style>
*{
margin: 0;
padding: 0;
}
.outer{
width:100%;
}

.left{
float: left;
width:200px;
height: 500px;
font-weight:bold;">orange;
}

.main{
float: left;
width:calc(100% - 200px);
height: 500px;
font-weight:bold;">yellowgreen;
}
</style>
</head>
<body>

<div class="outer">
<div class="left">左侧</div>
<div class="main">中间</div>
</div>
</body>
</html>

左侧固定中间自适应

原文:https://www.cnblogs.com/eric-share/p/13733116.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!