为什么同样的源代码在localhost上显示的效果和源网站上效果不一样?_html/css_WEB-ITnose

php中文网
发布: 2016-06-21 09:02:48
原创
1174人浏览过

这是源网站 http://v3.bootcss.com/examples/theme/
源网站的carousel可以正常显示,而我发布到localhost中就不能显示了。。


回复讨论(解决方案)

相关的js css 等等文件你都引入全了没?或者实现方法里面写的对不对 

n你的html 代码里面的 属性是否和demo都一样?

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">        <ol class="carousel-indicators">          <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>          <li data-target="#carousel-example-generic" data-slide-to="1"></li>          <li data-target="#carousel-example-generic" data-slide-to="2"></li>        </ol>        <div class="carousel-inner" role="listbox">          <div class="item active">            @@##@@          </div>          <div class="item">            @@##@@          </div>          <div class="item">            @@##@@          </div>        </div>        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">          <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>          <span class="sr-only">Previous</span>        </a>        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">          <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>          <span class="sr-only">Next</span>        </a>      </div>
登录后复制
登录后复制

n你的html 代码里面的 属性是否和demo都一样?

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">        <ol class="carousel-indicators">          <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>          <li data-target="#carousel-example-generic" data-slide-to="1"></li>          <li data-target="#carousel-example-generic" data-slide-to="2"></li>        </ol>        <div class="carousel-inner" role="listbox">          <div class="item active">            @@##@@          </div>          <div class="item">            @@##@@          </div>          <div class="item">            @@##@@          </div>        </div>        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">          <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>          <span class="sr-only">Previous</span>        </a>        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">          <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>          <span class="sr-only">Next</span>        </a>      </div>
登录后复制
登录后复制


我就是把原网页的所有代码原封不动的复制了进去。。。 为什么同样的源代码在localhost上显示的效果和源网站上效果不一样?_html/css_WEB-ITnose为什么同样的源代码在localhost上显示的效果和源网站上效果不一样?_html/css_WEB-ITnose为什么同样的源代码在localhost上显示的效果和源网站上效果不一样?_html/css_WEB-ITnose为什么同样的源代码在localhost上显示的效果和源网站上效果不一样?_html/css_WEB-ITnose为什么同样的源代码在localhost上显示的效果和源网站上效果不一样?_html/css_WEB-ITnose为什么同样的源代码在localhost上显示的效果和源网站上效果不一样?_html/css_WEB-ITnose
HTML速学教程(入门课程)
HTML速学教程(入门课程)

HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号