<div class="row">
<div class="span4 collapse-group">
<p class="collapse" id="viewdetails">Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
<p>
<a class="btn btn-danger" data-toggle="collapse" data-target="#viewdetails">View details »</a>
</p>
</div>
答案 0 :(得分:0)
对于慢下来,您可以使用jQuery
这样尝试:
<div class="row">
<div class="span4 collapse-group">
<p>
<a class="btn btn-danger" data-toggle="collapse" data-target="#viewdetails">View details »</a>
</p>
<p class="collapse" id="viewdetails">Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.</p>
</div>
</div>
您的JQuery代码:
<script type="text/javascript">
$(".btn-danger").click(function(){
$("p").slideDown(1000);
});
</script>