如何是web app不出现webdriver 滚动条条

html让局部强制出现滚动条不破坏整体的样式和布局
互联网 & 10-18 16:36:27 & 作者:佚名 &
局部出现滚动条,这样就不会破坏整体的样式和布局了,下面有个不错的示例,大家可以拷贝代码到文本文档修改文本后缀名,txt 为 .html 预览效果
先贴出效果图: &局部出现滚动条,这样就不会破坏整体的样式和布局了. 范例代码: 代码如下: &html& &head& &meta http-equiv="Content-Type" content="text/ charset=gb2312"& &title&html页面内加横向滚动条&/title& &/head& &body& &DIV style=" OVERFLOW-X: scrollbar-face-color:#B3DDF7;scrollbar-shadow-color:#B3DDF7;scrollbar-highlight-color:#B3DDF7;scrollbar-3dlight-color:#EBEBE4;scrollbar-darkshadow-color:#EBEBE4;scrollbar-track-color:#F4F4F0;scrollbar-arrow-color:#000000; width:752HEIGHT: 380px" align=center& &table width="1440" border="0" cellspacing="0" cellpadding="0"& &tr& &td&p&/td& &td&&&/td& &td&&&/td& &td&&&/td& &td&&&/td& &/tr& &tr& &td&&&/td& &td&pppppppppppppppppp&/td& &td&ppppppppppppp&/td& &td&ppppppppppppppppppp&/td& &td&ppppppppppppppppppppppppppppppp&/td& &/tr& &tr& &td&&&/td& &td&&&/td& &td&&&/td& &td&&&/td& &td&&&/td& &/tr& &/table& &/div& &/body& &/html& 拷贝上面代码到 文本文档, 修改文本后缀名,txt 为 .html 预览效果
大家感兴趣的内容
12345678910
最近更新的内容11:42 提问
webview带了个类似于滚动条的东西,但是不是真正的滚动条
如图,当滚出一屏时这个东西就不在了。滚下来又出现,而且设置滚动条可见的话这个也在。
按赞数排序
有大神帮忙解决一下么
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)12176人阅读
Can you make the overflow content of a div scrollable in the Android browser?
It is scrollable in all other modern browsers.
In iOS it is scrollable - however it does not show scrollbars - but it is scrollable via dragging.
A simple example:&
Will this be fixed soon?
Android 3.0 and higher have support for&overflow:scroll,
on & 3.0 it's another story. You might have some success with polyfills like iScroll, however that does come at a cost. It's difficult to implement on sites with complex layouts, and you need to a call a method everytime the content on your site changes. Memory
use is also an issue: on already underpowered devices performance may lag because of these kinds of polyfills.
I would recommend a different approach: use Modernizr to detect support for overflow scrolling , add a class to your&html&tag
and use that to rewrite your CSS so that pages scroll 'normally' instead of in a box.
/* For browsers that support overflow scrolling */
height: 400
/* And for browsers that don't */
html.no-overflowscrolling #div {
&is supported as of Android 3 (API 11).
For a cross-platform (namely iOS &=4.3.2)&&is an easy-to-implement fix.
You could try&&for scrollable div elements
Just for completeness:
The scrollbars are actually there in Android 2.3, but they are very buggy and by default they are styled to have 0 width, so they are invisible.
You can make them visible by adding styling like:
::-webkit-scrollbar {
::-webkit-scrollbar-track {
background-color: $
::-webkit-scrollbar-thumb {
background-color: $
However, the thumb element is not draggable, you can only move it by tapping the track underneath or above it.
Also, these styles will change the look of your scrollbars in all webkit browsers, so best you should add a class that only applies to Android 2.3.
You can make a DIV scrollable in Android by defining the styles of the scrollbar in your CSS. This article show you how to do it:&如何是web app不出现滚动条_百度知道
如何是web app不出现滚动条
我有更好的答案
scroll不出现滚动条添加一个Css样式-webkit-overflow-scrolling:
采纳率:61%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。

我要回帖

更多关于 webview去掉滚动条 的文章

 

随机推荐