【求助】Dreamweaver里面这个bootstrap的carousel为什么在实时视图里面有图片,但是用网页打开看不了鸭

土豆丝炒人 2018-12-01 05:58:00
Dreamweaver里面这个bootstrap的carousel在实时视图里面有图片,但是用网页打开就看不了……
我是特别小白那种老师上课啥都没教就让我们直接做,麻烦大佬说详细些

<div id="carouselExampleIndicators1" class="carousel slide" data-ride="carousel" style="background-color: ">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators1" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators1" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators1" data-slide-to="2"></li>
<li data-target="#carouselExampleIndicators1" data-slide-to="3"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="carousel-item active"> <img src="/images/1.jpg" alt="家乡风貌" width="640" height="480" class="d-block mx-auto img-rounded ">
<div class="carousel-caption">
<h1></h1>
<h1>家乡风貌</h1>
</div>
</div>
<div class="carousel-item"> <img class="d-block mx-auto img-rounded" src="/images/2.jpg" alt="课程成绩" width="640" height="480">
<div class="carousel-caption">
<h1> </h1>
<h1>课程成绩</h1>
</h1>
</div>
</div>
<div class="carousel-item"> <img class="d-block mx-auto img-rounded" src="/images/3.jpg" alt="个人爱好" width="640" height="480">
<div class="carousel-caption">
<h5></h5>
<h1>个人爱好</h1>
</div>
</div>
<div class="carousel-item"> <img class="d-block mx-auto img-rounded" src="/images/4.jpg" alt="好友介绍" width="640" height="480">
<div class="carousel-caption">
<h5></h5>
<h1>好友介绍</h1>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators1" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a class="carousel-control-next" href="#carouselExampleIndicators1" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div>
...全文
291 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
土豆丝炒人 2018-12-02
  • 打赏
  • 举报
回复
我发现了…在本地就不行,传到服务器上就行了……
具体我其实还没明白为什么
网上有一个说class="img-rounded"可以给图片弄成圆角但我也没弄成…
就这样叭
土豆丝炒人 2018-12-01
  • 打赏
  • 举报
回复
引用 1 楼 winzond 的回复:
按F12看有没有报错。一般由根目录开始的,路径应该不会错

是这个嘛,源映射错误:TypeError: NetworkError when attempting to fetch resource.
winzond 2018-12-01
  • 打赏
  • 举报
回复
按F12看有没有报错。一般由根目录开始的,路径应该不会错

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧