html - 区 block 高度是个问题——我尝试了所有方法,但 :(

标签 html css

帖子高度有问题。帮帮我..

enter image description here

请查看网站:http://www.mulberrydesignerkitchens.com/

<li>
<div class="thumb-img">
<a title="Hiring a Professional Designer for Your Kitchen" href="http://www.mulberrydesignerkitchens.com/hiring-a-professional-designer-for-your-kitchen/">
<img class="attachment-home-thumbnail wp-post-image" width="163" height="110" title="Oak kitchen Cupboard" alt="Oak kitchen Cupboard" src="http://www.mulberrydesignerkitchens.com/wp-content/uploads/Oakkitchen31-163x110.png">
</a>
</div>
<div class="post-text">
<h3>
<a href="http://www.mulberrydesignerkitchens.com/hiring-a-professional-designer-for-your-kitchen/">Hiring a Professional Designer for Your Kitchen</a>
</h3>
<p>
Ensuring that you hire the correct professional is far more important than vision, design or budget when it comes to having your kitchen built properly and safely.
<a class="more-link" href="http://www.mulberrydesignerkitchens.com/hiring-a-professional-designer-for-your-kitchen/#more-580">
<span class="more">[more]</span>
</a>
</p>
<div class="wpfblike" style="height: 40px; display: none;">
<fb:like class=" fb_edge_widget_with_comment fb_iframe_widget" send="false" colorscheme="light" action="like" width="400" show_faces="true" layout="default" href="http://www.mulberrydesignerkitchens.com/hiring-a-professional-designer-for-your-kitchen/">
</div>
</div>
</li>

最佳答案

li 中定义 border-bottom 而不是 .post-text。像这样写:

#homepage-images ul li {
    border-bottom: 1px solid #CCCCCC;
    margin-top: 20px;
    width: 560px;
    overflow:hidden;
}
.post-text {
    padding-bottom: 10px;
}

关于html - 区 block 高度是个问题——我尝试了所有方法,但 :(,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9545421/

相关文章:

javascript - 我的 jQuery 点击事件只工作一次

javascript - 表单重新加载页面,提交时不发送数据

javascript - 将文本区域中的值连接到另一个位置

html - 有没有办法让行内 block 元素表现得像表格单元格?

java - sts 或 eclipse 包资源管理器字体大小和排序右键单击选项

css - ionic - 无法开始 gulp

javascript - 带有图像工具提示的幻灯片库,图像突破无限宽度 block

java - HTML表单参数全部为空

html - 如何在选择列表中添加图像?

javascript - BlockUI 在阻止特定 DIV 时抛出 "has no method ' blockUI' "错误