js,html一个页面里面多个页面轮播


这种轮播都是div或者图片的,div能换成iframe显示嵌套网页吗?或者请问有没有其他方法能实现多个页面轮播?

我写了三个iframe

<div class="showbox"><!--showbox开始-->
    <div class="show"><!--show开始-->
        <!--1-->
        <div class="slide">
            <iframe src="GridGallery/GridGallery/index.html"
                    frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" >
            </iframe>
        </div>

        <!--2-->
        <div class="slide">
            <iframe src="Display_box/display.html"
                    frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" >
            </iframe>
        </div>

        <!--3-->
        <div class="slide">
            <iframe src="Library/Library_show.html"
                    frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" >
            </iframe>
        </div>
    </div><!--show结束-->

</div><!--showbox结束-->

调用了这个

http://img.mukewang.com/59b409f20001372c08160027.jpg

http://img.mukewang.com/59b409f3000152e107850182.jpg

css设置了

iframe{

    width: 100%;
    height: 569px;
    margin-bottom: 30px;
    margin-top: 197px;
    overflow:hidden;
     text-align: center;
    font-size: 18px;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;

}

为什么还是没有实现??是哪里错了,调用路径检查过了是对的


qq_安安_17
浏览 7120回答 2
2回答

颜鸿羽

不知道就百度一下,你就知道。如果还不知道你就Google一下,你就知道的太多了?

橋本奈奈未

试一下不就知道了?我试了是可以的
打开App,查看更多内容
随时随地看视频慕课网APP