900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > CSS:布局——左右两个DIV 左侧宽度固定 右侧占满剩余部分

CSS:布局——左右两个DIV 左侧宽度固定 右侧占满剩余部分

时间:2021-04-06 13:11:07

相关推荐

CSS:布局——左右两个DIV 左侧宽度固定 右侧占满剩余部分

<section class="main"><!--左边导航栏--><aside class="main_left"></aside><!--右边主体--><section class="main_right"></section></section>

.main .main_left{height: 100%;width:210px;float:left;background-color: red;}.main .main_right{height: 100%;margin-left:210px;background-color: yellow;}

效果

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。