两列布局与左流体和右填充休息宽度 [英] Two column layout with left fluid and right fill the rest width

查看:67
本文介绍了两列布局与左流体和右填充休息宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要类似于。但是我想正确的列不是固定大小,而是可变大小。可能吗?

I need something similar to this and this. However I want the right column not to be fixed size, but variable size. Is it possible?

–––––––––––––––––––––––––––––––––––––––––––––––––––––––
|some text|stretch to fill the remaining space        | <- viewport
–––––––––––––––––––––––––––––––––––––––––––––––––––––––


推荐答案

http://jsfiddle.net/A8zLY/2333/
来自链接的小提琴I发布。
right不需要固定宽度。请参阅上面的链接

http://jsfiddle.net/A8zLY/2333/ Fiddle from link I posted. right does not need fixed width. See link above

width:auto

这是您要查找的内容吗?

Is this what you're looking for?

这篇关于两列布局与左流体和右填充休息宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆