图片DIV类和利润类
问题描述:
我使用的引导下列标记和我自己的类的CSS将在需要的地方风格的页面,他们是如何在需要图片DIV类和利润类
.sm-margin {
margin-top: 10px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet"/>
<div class="col">
<div class="thumbnail">
<a href="menu.php">
<img src="img/turkey.jpg" alt="Turkey dinners" style="width:100%">
<div class="caption text-center sm-margin">
<p><button type="button" class="btn btn-success">Check out our menu</button></p>
</div>
</a>
</div>
</div>
我不清楚为什么.sm-margin不会在顶部添加小保证金 - 请参阅我的网站上的保证金here
答
保证金将添加到网站顶部的按钮中 U可以检查和取消您的类的复选框,以查看如果您使用该CSS类或不...
答
我的代码是正确的,这是一个浏览器错误。我在Chrome浏览器上清除了缓存,并将其更正。
谢谢大家的意见。
它已经受到影响,您期望什么? – Pedram
对我有用(Firefox和Chrome) - 是什么让你觉得它没有? – Connum
如果您注意到 - marign添加到您的网站。 [这](https://screenshots.firefox.com/MkjKa4zmfRIAmblg/adonnelly759.students.cs.qub.ac.uk)黄色褪色线 –