早教吧 育儿知识 作业答案 考试题库 百科 知识分享

怎样实现在固定宽度里面左边固定宽度,右边自适应?.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
希望对你有所帮助。
看了怎样实现在固定宽度里面左边固定...的网友还看了以下: