-
You need to use max-height not min-height!
div{
max-height: 100px;
height: 100%;
}
讨论(0)
-
use max-height instead. It will work fine. the min- height wont work on div.
讨论(0)
-
A div's height depends on its inner elements, in your example, the first input is having a height of 100px, so the div will have at least 100px height, ignoring spacing, boarder, padding.
Setting max-height on the div will hint the rendering engine to limit the height, but doesn't necessarily work all the time.
I'd suggest you changing the input's height first:
<input style="max-height: 100px" type="text" name="Client" id="Client" readonly="readonly" class="m-wrap span4 clrField" tabindex="1" />
讨论(0)
-
<div class="row-fluid" style="height:100px">
..............
..........
</div>
讨论(0)
- 热议问题