早教吧作业答案频道 -->其他-->
怎样实现在固定宽度里面左边固定宽度,右边自适应?.out{width:1000px;margin:0auto;}#left{float:left;width:252px;text-align:center;border:1pxsolid#000;}#right{margin-left:252px;text-align:center;border:1pxsoli
题目详情
怎样实现在固定宽度里面左边固定宽度,右边自适应? .out{ width:1000px; margin:0 auto;} #left{ float:left; width:252px; text-align:center; border:1px solid #000; } #right{ margin-left:252px; text-align:center; border:1px solid #f00 } 无标题文档
固定252px
按浏览器自适应
▼优质解答
答案和解析
.out{width:100%;margin:0 auto;background-color:#CCCCCC;} #left{ float:left; width:252px; text-align:center; border:1px solid #000; } #right{ margin-left:252px; text-align:center; border:1px solid #f00 } 适应显示器 希望对你有所帮助。
固定252px
按照显示器宽度
看了怎样实现在固定宽度里面左边固定...的网友还看了以下:
怎样实现在固定宽度里面左边固定宽度,右边自适应?.out{width:1000px;margin:0 2020-11-01 …