使用twitter-bootstrap和animation .css创建卡片盒



我尝试用bootstrap+ animation .css创建一个卡片

请检查google chrome最新版本:

    <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>

I want当我将鼠标移到卡片上时,会出现一个红色按钮。然后消失。

ّI完成了。

ّNow当我点击按钮时,它打开了一个模态框。

我做到了!

但这是我的问题:

当我关闭模态框,卡片的容器浮动到左边!

这里是一个演示:https://jsfiddle.net/1pyeg7w2/

我解不出来

我用另一个具有position:relative规则的div包装了您的div.shop-card.well内容,它似乎正在工作

<div class="shop-card well">
    <div style="position:relative">
        your content here
    </div>
</div>

最新更新