滑动左右宽度超过

时间:2014-05-02 19:59:33

标签: css animation animate.css

我已使用Animate.css创建左右幻灯片。我无法弄清楚为什么幻灯片加起来看不见的宽度。你们任何人可以帮助我吗?

http://jsfiddle.net/itsnamitashetty/CKgX8/1/

        <style>
            body{
                margin:0;
                padding:0;
            }

            #animationentry{
                width:100%;
                height:700px;
                margin:0;
                padding:0;
                background:green;
                display:block;
            }
            #cww_bg{
                display:block;
                float:left;
                width:50%;
                background:red;
            }
            #crw_bg{
                display:block;
                float:left;
                width:50%;
                background:yellow;
            }
        </style>

        <link type="text/css" rel="stylesheet" href="css/animate.css">

    </head>

    <body>
        <div id="animationentry">

        <div id="crw_bg" class="animated slideInLeft">
            <img src="images/crw.jpg">
        </div>

        <div id="cww_bg" class="animated slideInRight">
            <img src="images/cww.jpg">
        </div>

        </div>
    </body>
</html>

1 个答案:

答案 0 :(得分:0)

小提琴http://jsfiddle.net/CKgX8/2/

overflow: hidden;添加到#animationentry

#animationentry{ overflow: hidden;}