Windows phone Webbrowser bouncy behaviour

本秂侑毒 提交于 2019-12-12 00:28:36

问题


How to restrict the webbrowser control bouncy behaviour (white space is seen while scrolling up and down). Please refer the screenshot below.


回答1:


There doesn't appear to be a way to disable the 'bounce in the WP7 or WP8 WebBrowser control.

But the issue you're seeing can be fixed with a small bit of CSS. Simply apply a background-color to the BODY of the document..

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style type="text/css">
        body {background: black}
        #content {background: black}
        p {color:white}
    </style>
</head>
<body>

<div id="content">
    <p>Item 1</p>
    <p>Item 2</p>
    <p>Item 3</p>
</div>

</body>
</html>


来源:https://stackoverflow.com/questions/15517016/windows-phone-webbrowser-bouncy-behaviour

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!