我试图将2个部分放在一起,使用内嵌块和宽度作为百分比,但它并没有填满我的窗口的整个宽度.
我到目前为止
- <section class="left-content">
- "Some Code"
- </section>
- <section class="main-content">
- "Some More Code"
- </section>
CSS
- .left-content,.right-content {
- width: 15%;
- min-width: 150px;
- padding: 5px;
- display: inline-block;
- overflow: hidden;
- vertical-align: top;
- }
- .main-content {
- width: 85%;
- min-width: 712px;
- padding: 10px;
- display: inline-block;
- overflow: hidden;
- vertical-align: top;
- }
但是,除非我在屏幕上确定了小数点的确切百分比,否则它不起作用.有谁知道一种使用内嵌块的方法,还是使用float?