0.5 cn


Use web component to display any web content in the weex page. The src attribute is used to specify a special source. You also can use webview module to control some web operation such as goBack、goForward and reload, see webview module.

Child Components

This component supports no child components.


  • src: <string> this attribute specifies the page source to load.

Other attributes please check out the common attributes.


  • width: <length> the width of the component. This style should be specified.
  • height: <length> the height of the component. This style should be specifed.

common styles: check out the common styles

  • support flexbox related styles
  • support box model related styles
  • support position related styles


  • pagestart: sent after the web component starts loading a page.
  • pagefinish: sent after the web component finishes loading a page.
  • error: sent if the web component failed to load a page.

common events*: check out the common events


  <web style="width=...; height=...;" src="..."     onpagestart="pagestart" onpagefinish="pagefinish"     onerror="error">

results matching ""

    No results matching ""