我尝试用bootstrap+animate.css创建一张卡片
请查看google的最新版本:
<div class="shop-card well">
<h3><a href="/">title 1</a></h3>
<a href="/">
<figure class="figure">
<img class="figure-img img-fluid img-rounded" src="http://wewswiderska.home.pl/images/3dspace.html-i1.png">
</figure></a>
<div class="price">1234 <span class="symbol">R</span>
<del>5678</del>
</div>
<form class="hide buys" id="inform-ordering-5" name="inform-ordering-5" role="form" style="overflow: hidden;position: absolute;left:-1px;width: 100%; bottom: -1px;">
<div class="btn-group btn-group-justified">
<a class="btn btn-danger" data-target="#phoneModal" data-toggle="modal" href="#">modal</a>
</div>
</form>
</div>当我把鼠标移到卡片上时,会出现一个红色的按钮。然后消失。
ّ我做到了。
ّ现在当我点击按钮时,它会打开一个模态框。
我做到了!
但这是我的问题:
当我关闭模态盒时,卡片的配置器向左浮动!
下面是一个演示:https://jsfiddle.net/1pyeg7w2/
我解决不了。
发布于 2016-08-21 21:31:14
我用另一个带有div.shop-card.well规则的div包装了您的position:relative内容,它似乎正在工作。
<div class="shop-card well">
<div style="position:relative">
your content here
</div>
</div>https://stackoverflow.com/questions/39068463
复制相似问题