【发布时间】:2012-08-15 08:02:50
【问题描述】:
我有一段文字,位于p-tag 中。在此文本中,有一个图像。对于该图像,我想使用small 标签在下面添加一个标题。这是 HTML 代码(我添加了换行符以提高可读性):
<p>Lorem ipsum dolor sit amet, <img src="img/myimage.png" alt="myimage" /><small>
Hey look, thats my image!</small><br />consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam</p>
现在我想使用这个 CSS 代码为 small-tag 添加一个底部边距:
p small {
margin-bottom: 30px;
}
它不起作用,没有应用margin-bottom。选择器是正确的,因为我可以更改左边距、文本颜色等。
如何在 Twitter Bootstrap 中将 margin-bottom 添加到 small?
【问题讨论】:
标签: css twitter-bootstrap