You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
@DoranYun 目前的代码结构是 <template><div><div></div><web></web></div></template>
这样,< web >引入一个.html,而这个.html的高度不确定,想要< web >包含整个.html,所以< web >的高度也不确定,所以想知道这个问题怎么解决
本文档已迁移至 https://weex-project.io/cn/references/components/web.html ,此处不再维护,谢谢。
<web>
英文原文
概述
web组件用来在weex页面中显示web内容。
src
属性用来指定一个源。你也能用webview
模块来控制一些web操作比如回退、前进和重载,详见webview组件。子组件
这个组件不支持子组件。
属性
src
: <string> 这个属性指定页面加载源其他属性请查阅 基本属性.
样式
width
: <length> 组件的宽度,需指定。height
: <length> 组件的高度,需指定。基本样式: 查阅 基本样式
position
相关样式事件
pagestart
: 发生在web组件一个页面开始加载的时候。pagefinish
: 发生在web组件一个页面完成加载的时候。error
: 发生在web组件一个页面加载失败的时候。基本事件: 查阅 基本事件
click
事件. 查阅 基本事件appear
/disappear
事件. 查阅 基本事件例子
The text was updated successfully, but these errors were encountered: