我想下面的布局HTML CSS两列的布局与子栏左栏
aaaaaaaaa | bbbb
aaaaaaaaa | bbbb
cc | dd | bbbb
cc | dd | bbbb
cc | dd | bbbb
面积为“B”的应该有一个固定的宽度。 “a”的区域应占用剩余的可用空间。 “c”和“d”的宽度分别为50%。
我可以做到这一点与表没有任何问题。
我想你们中的一个人可以指导我如何用DIV和CSS做到这一点。
http://matthewjamestaylor.com/blog/ultimate-2-column-right-menu-pixels.htm 有什么看起来像基于Div的解决方案的基础。
但我还需要确信,这是正确的做法。 ,因为它确实带有代码大小和开发时间的价格... ...
我希望这可以在IE 7和最新版本的chrome和FF上工作。
(我刚刚看了这个讨论:http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_21694743.html我大约5年前开始,我还是不喜欢CSS浮动的div ...)
也 - 有谁知道如何支持是这样的:http://www.w3.org/TR/css3-multicol/?
当前的代码,但它不以任何方式稳定,我一直用它打..但似乎没有做什么,我需要:
<div id="_home_container_div" style="background-color:red;">
<div style="float:right;background-color:violet;width:155px;margin-top:55px;margin-right:55px;marginleft:55px;">
<div class="slideshow" style="width:100%;padding:0px auth;background-color:green;">
some images go here
</div>
<div id='caption' style="width:100%;padding:0px auth;font-size:14px; font-weight:bold; ">
initial caption for first image
</div>
</div>
<div style="float:right;margin-top:55px;background-color:blue;">
<div class="h1text" style="float:left;">
<h1 class="_home_main_caption">${Home.main__header}</h1>
<p class="h1text">${Home.main1__para}</p>
<p class="h1text">${Home.main2__para}</p>
</div>
<div class="h2text" style="float:left;clear:left;">
<h2>${Home.subA__header}</h2>
<p>${Home.subA1__para}</p>
<p>${Home.subA2__para}</p>
</div>
<div class="h2text" style="float:left;clear:left;">
<h2>${Home.subB__header}</h2>
<p>${Home.subB1__para}</p>
<p>${Home.subB2__para}</p>
</div>
</div>
</div>
你有什么代码,使远吗? –
你在这一刻的代码将是有用的。 – Undefined
在这里找到了我最后(也是-...)Q的答案:http://caniuse.com/#search=multiple%20col – epeleg