Safari 中未出现滚动条
我的 ASP.net 应用程序的滚动条在 IE、Firefox 和其他浏览器中工作,但在 Safari 中不起作用。
这是代码行:
<asp:Panel ID="Panel2" Height="662px" ScrollBars="Auto" Width="702px" style="float:left; position: relative; background-image: url('Images/LargeOffwhiteBox.png')" runat="server">
我正在开发的页面在这里:http://www.icdpros。 com/clients.aspx
在 IE 或 Firefox 中打开它会在中间面板中显示一个垂直滚动条。 Safari 没有滚动条,因此无法滚动。
有人知道这个问题的解决办法吗?
My ASP.net app's scrollbars are working in IE, Firefox, and other browsers, but don't work in Safari.
This is the line of code:
<asp:Panel ID="Panel2" Height="662px" ScrollBars="Auto" Width="702px" style="float:left; position: relative; background-image: url('Images/LargeOffwhiteBox.png')" runat="server">
The page I am developing this for is here: http://www.icdpros.com/clients.aspx
Opening it in IE or Firefox shows a vertical scrollbar in the middle panel. Safari doesn't get a scrollbar and therefore can't be scrolled.
Does anybody know the solution to this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,这是 Safari 5.1 的默认行为。尽管设置overflow:auto时它不会显示溢出,但您可以使用两根手指在触控板上上下滚动,或使用鼠标滚轮。当您使用这两种方法滚动时,将会出现滚动条和缩略图。如上所述开始滚动后,您可以用光标抓住滚动条拇指并上下拖动。滚动后不久,滚动条会自动消失,直到用户再次尝试使用触控板或鼠标滚轮进行滚动。
Actually, that's the default behavior for Safari 5.1. Although it doesn't show overflow when you set overflow:auto, you can scroll using two fingers on the trackpad up and down, or with the mousewheel. As you scroll using these two methods, the scrollbar and thumb will appear. After starting to scroll as afore mentioned, you can then grab the scrollbar thumb with the cursor and drag it up and down. A few moments after scroll, the scrollbar fades away automatically until the user again makes and attempt to scroll with the trackpad or mousewheel.