我想有一个底线。
This can be see at http://jsfiddle.net/R5YN2/
是什么原因不能把边界置于底层?
Your container element isn t accounting for the float
ed elements and is basically collapsing.
出售:
#recurring-header-wrapper {
display: block;
padding-bottom: 10px;
border-bottom: 1px solid #ccc;
overflow: auto;
}
页: 1 http://jsfiddle.net/R5YN2/14/。
此外,班级名称也很容易。 你们可以选择在要素内针对班级的人选:
#recurring-header-wrapper .label
对应条目
如果你提出,你也必须明确。
阅读:rel=“nofollow” http://www.positioniseverything.net/easyclearing.html。
这是你所期待的。 在您的总结中添加“笔记”。
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
它是在底线上展示的(在底线上,案文的过量)。 核对<代码>over:hidden和大部分案文消失。 增加一把高点,使其达到所需的规模。
简短回答:<代码>float:left。
更正如下:
the floated divs inside cause this. you can clear them. http://jsfiddle.net/R5YN2/9/
这里是快速解决方案。 基本上,当你浮出头集团离开时,除非你用一些东西清除他们(一只空干是罚款)。
<div id="recurring-header-wrapper">
<div class="recurring-header-group">
<div class="recurring-header-label">Label</div>
<div class="recurring-header-item">Item</div>
</div>
<div class="recurring-header-group">
<div class="recurring-header-label">Label</div>
<div class="recurring-header-item">Item</div>
</div>
<div style="clear:both"></div>
</div>
http://jsfiddle.net http://jsfiddle.net/R5YN2/16/。
I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....
I have a div <div id="masterdiv"> which has several child <div>s. Example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="...
I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...
<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js ...
So I ve got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I ...
I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!