div 不能自适应宽度

<style>
.ttest{ border: solid 1px #999; }
.test{ margin-left:0px; margin-bottom:20px; }
.test li{ display:block;float:left; list-style:none; padding-right:20px; width:110px;}
</style>

<div class="ttest" >

<div><h5>智能锁</h5>
<ul class="test"> <li>三星智能锁</li><li>耶鲁电子锁</li><li>金指纹电子指纹</li><li>三星智能锁</li></ul>
</div>
</div>

div 的高度不够 怎样写让自动适应 不要固定高度 求高手解答
去掉漂左 就能自动是适应 在线等

<style>
.ttest{ border: solid 1px #999; float:left;}
(给其添加float:left)
</style>
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答