我一直试图弄清楚为什么这些行彼此如此接近,它应该在每行的底部有边距/填充。
请参阅"受影响区域"除了我把左边,其余的行堆放在那里,根本没有间距。如果我将它们从手风琴中取出,那么正确渲染就意味着它们之间存在间距。还有任何想法,当你在侧面菜单上盘旋时如何平滑页面它似乎缓慢和口吃。
http://markestrada.co.uk/cm/ticket/test.php
<div class="col-md-3"> <!-- Area affected block -->
<div class="row">
<div class="col-md-12">
<div class="panel panel panel-default">
<div class="panel-heading">Area Affected</div>
<div class="panel-body">
backend login is not working
</div>
</div>
</div>
</div><br>
<div class="row">
<div class="col-md-12">
<div class="panel panel panel-default">
<div class="panel-heading">Step to replicate issue</div>
<div class="panel-body">
go to wp-admin
</div>
</div>
</div>
</div> <br>
<div class="row">
<div class="col-md-12">
<div class="panel panel panel-default">
<div class="panel-heading">Urls</div>
<div class="panel-body">
<a href="#">Ticket live link</a> <br />
<a href="#">Internal QA link</a> <br />
<a href="#">External QA link</a> <br />
</div>
</div>
</div>
</div>
</div> <!-- Area affected block -->
当雪佛龙没有工作时,当你点击手风琴时它应该上下移动。 https://jsfiddle.net/tjj72mek/
function toggleChevron(e) {
$(e.target)
.prev('.panel-heading')
.find('i.indicator')
.toggleClass('glyphicon-chevron-down glyphicon-chevron-up');
}
$('#accordion').on('hidden.bs.collapse', toggleChevron);
$('#accordion').on('shown.bs.collapse', toggleChevron);
答案 0 :(得分:0)
<div class="col-md-3"> <!-- Area affected block -->
<div class="panel panel-default">
<div class="panel-heading"><a role="button" data-toggle="collapse" data-parent="#accordion" href="#detailscollapseOne" aria-expanded="true" aria-controls="detailscollapseOne">Area Affected</a></div>
<div class="panel-body">
backend login is not working
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><a role="button" data-toggle="collapse" data-parent="#accordion" href="#detailscollapseOne" aria-expanded="true" aria-controls="detailscollapseOne">Step to replicate issue</a></div>
<div class="panel-body">
go to wp-admin
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><a role="button" data-toggle="collapse" data-parent="#accordion" href="#detailscollapseOne" aria-expanded="true" aria-controls="detailscollapseOne">Urls</a></div>
<div class="panel-body">
<a href="#">Ticket live link</a> <br>
<a href="#">Internal QA link</a> <br>
<a href="#">External QA link</a> <br>
</div>
</div>