Colorbox Scrollbars [英] Colorbox Scrollbars

查看:72
本文介绍了Colorbox Scrollbars的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在灯箱中打开的图像(Colorbox是脚本)。当图像打开时,我添加了一个CSS3动画。效果很好,但最初灯箱有滚动条,一旦动画完成就会消失。

I have an image that opens in a a lightbox (Colorbox is the script). When the image opens I added a CSS3 Animation. Works great but at first the lightbox has scrollbars which disappear once the animation is complete.

如何防止灯箱完全显示滚动条?

How do I prevent the lightbox from showing scrollbars at all?

代码:

#start{
  /* Width and Height of the Image */
  width:526px;
  height:450px;
}

<div class="hide">
<div id="start">
 <img src="/Images/designs/start-large.jpg" class="animated rollIn"> 
</div>
</div>


推荐答案

您可以尝试添加溢出:隐藏; 到您的div / img的CSS样式。或尝试溢出:可见; 如果它切断了某些东西。

You could try to add overflow:hidden; to your CSS style of the div / img. Or try overflow:visible; if it cuts off something.

这篇关于Colorbox Scrollbars的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆