-
Notifications
You must be signed in to change notification settings - Fork 1
setStyle
Xianxu edited this page Feb 21, 2024
·
1 revision
webview.setStyle({
height:100,
width:100,
...
})
详细配置
{
top: 0, //顶部距离
width: '100%', //跨度
height: '100%',//高度
userSelect: true,//用户是否可以长按选择
cachemode: 'cacheElseNetwork', //缓存模式
hardwareAccelerated: true, //硬件加速
videoFullscreen: 'landscape-primary',//视频全屏播放方向
errorPage: '_www/static/html/error/error.html', //网页加载错误页面地址
progress: { //进度条
color: '#4580ee',
height: '2px'
},
scalable: true //是否可缩放
}