我一直在Interwebz上搜索,但似乎找不到答案。如何在轮播链接中添加 href?我尝试将 a 标签放在 h1 标签之外,但它破坏了滑块本身的功能。
这是我的代码?
<div class="col-sm-12">
<div id="my-slider" class="carousel slide" data-ride="carousel">
<!-- indicators dot nov -->
<ol class="carousel-indicators">
<li data-target="#my-slider" data-slide-to="0" class="active"></li>
<li data-target="#my-slider" data-slide-to="1"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="img/Internet.jpg" alt="Internet Services" />
<div class="carousel-caption">
<h1 href="/Internet">Truespeed Internet Services</h1>
</div>
</div>
<div class="item">
<img src="img/HomePhone.jpg" alt="Truespeed Internet Services" />
<div class="carousel-caption">
<h1>Phone</h1>
</div>
</div>
</div>
<!-- Controls or next and prev buttons -->
<a class="left carousel-control" href="#my-slider" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#my-slider" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
http://www.bootply.com/nZjger87Zc# http://www.bootply.com/nZjger87Zc#
您可以添加a
标签就在H1
tags.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)