我正在使用按钮将图像状态从“隐藏”切换为“显示”。我可以显示图像,但是当它们显示时,它们会以垂直对齐方式显示。我希望图像能够水平显示而不是垂直显示。
我的标记如下
<div class="left ch-ad-profile-left eleven columns">
<button>
<div class="boxes-212x100">
<h4 class="blue">Parked Ads</h4>
<div class="status-l">
<p>Updates</p>
<center><span>18</span></center>
</div>
<div class="status-r">
<p>Removed</p>
<center><span>3</span></center>
</div>
<div class="clearfix"></div>
</div>
</button>
<script>
$("button").click(function () {
$(".boxes-112x100-1").slideToggle("slow");
});
</script>
<!--end class=boxes-212x100-->
<div class="boxes-112x100-1" style="display:none;">
<img src="../../../images/placeholder-small.png" class="" alt="">
</div>
<div class="boxes-112x100-1" style="display:none;">
<img src="../../../images/placeholder-small.png" class="" alt="">
</div>
<div class="boxes-112x100-1" style="display:none;">
<img src="../../../images/placeholder-small.png" class="" alt="">
</div>
<div class="boxes-112x100-1" style="display:none;">
<img src="../../../images/placeholder-small.png" class="" alt="">
</div>
<div class="boxes-112x100-1" style="display:none;">
<img src="../../../images/placeholder-small.png" class="" alt="">
</div>
<div class="clearfix"></div>
</div>
那么如何判断切换以使图像显示在水平线而不是垂直线上?
答案 0 :(得分:0)
您可以使用jQueryUI。
答案 1 :(得分:0)