如何让div
底部有 1 px 边框?而不是那个厚厚的灰色条。div
具有1pxul
填充的id="widget-content"
白色背景具有 1px 边框印象。
无论我做什么,如果我尝试折叠小部件内容div
或展开 li div
。中可以有3个li
以上ul
。
HTML
<div id="content">
<div id="widget-head">
<h3><a href="#" target="_blank">CHANNEL</a></h3>
<div id="widget-edit"><img src="images/icons/settings_g.png" width="12" height="12"></div>
</div>
<div id="widget-content">
<ul id="widget-feeds">
<li>
<div>
<a href="#" > <img src="images/icons/hidden.gif" name="123311"> </a> <a href="#" target="_blank" title="title">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet tortor sit amet nunc interdum</a>
</div>
<div class="widget-desc">
<p>description text here</p>
</div>
</li>
<li>
<div>
<a href="#" > <img src="images/icons/hidden.gif" name="123311"> </a> <a href="#" target="_blank" title="title">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet tortor sit amet nunc interdum</a>
</div>
<div class="widget-desc">
<p>description text here</p>
</div>
</li>
<li>
<div>
<a href="#" > <img src="images/icons/hidden.gif" name="123311"> </a> <a href="#" target="_blank" title="title">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet tortor sit amet nunc interdum</a>
</div>
<div class="widget-desc">
<p>description text here</p>
</div>
</li>
</ul>
</div>
还有我相关的 CSS
#content #widget-container {
width: 30%;
background-color: #ddd;
float: left;
margin-top: 25px;
margin-bottom: 25px;
margin-left: 25px;
white-space: nowrap;
display: block;
}
#content #widget-container #widget-head {
height: 25px;
padding: 5px;
overflow: hidden;
line-height: 25px;
}
#content #widget-container #widget-head h3 {
font-size: 14px;
width: 90%;
float: left;
}
#content #widget-container #widget-head #widget-edit {
float: right;
width: 12px;
padding-top: 5px;
}
#content #widget-container #widget-content {
background-color: #FFF;
margin: 1px;
}
#content #widget-container #widget-content #widget-feeds ul {
overflow: auto;
}
#content #widget-container #widget-content #widget-feeds li {
display: block;
white-space: normal;
word-wrap: normal;
margin-bottom: 5px;
padding: 4px;
}
#content #widget-container #widget-content #widget-feeds li a {
}
#content #widget-container #widget-content #widget-feeds li .widget-desc {
white-space: normal;
display: none;
margin-bottom: 4px;
padding-top: 2px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 15px;
overflow: hidden;
}