web view会自动填满整个页面,有什么办法不布满吗?或者还有什么控件可以使用吗?

小程序 文章 2021-02-05 11:21 415 0 全屏看文

AI助手支持GPT4.0

web view会自动填满整个页面,有什么办法不布满吗?或者还有什么控件可以使用吗?The web view will automatically fill the entire page. Is there any way to not fill it? Or are there any controls available?

web view会自动填满整个页面,有什么办法不布满吗?或者还有什么控件可以使用吗?

在小程序中需要显示一个url中的内容,但是在下饭需要显示自己的按钮,web view 会自动填满整个页面,不知道有没有办法限制web view的高度,或者有什么和web view差不多的控件可以控制高度的吗?

In the small program, you need to display the content of a URL, but you need to display your own button after dinner, and the web view will automatically fill the whole page. I wonder if there is any way to limit the height of the web view, or is there any control similar to the web view that can control the height?

回答:

右耳先生:

找到方法了,可以参考一下这个https://blog.csdn.net/qq_43299315/article/details/107416587

不能控制高度,但是可以在web view上面显示,但是只在真机上可以使用

Brother斌🎈:

没有,以前也有试过想在webview是放按钮,但是真机上webview还是在最上层

老张:

没有办法。

-EOF-

AI助手支持GPT4.0