我有一段文字,位于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>
现在我想small
使用这个 CSS 代码为 -tag 添加一个底部边距:
p small {
margin-bottom: 30px;
}
它不起作用,没有margin-bottom
应用。选择器是正确的,因为我可以更改左边距、文本颜色等。
如何在 Twitter Bootstrap 中添加margin-bottom
to ?small