有些文件我无法获得文件的高度(绝对位于最底层).此外,填充底部似乎在这些页面上什么也不做,但在高度将返回的页面上执行.案例:
http://fandango.com
http://paperbackswap.com
在Fandango上
jQuery的$(document).height();返回正确值
document.height返回0
document.body.scrollHeight返回0
On Paperback Swap:
jQuery的$(document).height();TypeError:$(document)为null
document.height返回不正确的值
document.body.scrollHeight返回不正确的值
注意:如果有一些技巧,我有浏览器级权限.
我想在 flutter web 视图中添加复习内容
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Stack(
children: <Widget>[
Container(
child: Center(
child: Text(_title),
),
),
],
)),
body: SafeArea(
child: WebView(
key: _key,
javascriptMode: JavascriptMode.unrestricted,
initialUrl: _url)),
);
}
}
Run Code Online (Sandbox Code Playgroud)