Skip to content

Page property node

page-meta

attributetypeDefault valueRequiredIntroductionsMinimum version
background-text-stylestringnoDrop Down Background Font, Loading Diagram styles that support only dark and light3.0.7
background-colorstringnoThe background color of the window must be hexadecimal color value2.5.1
background-color-topstringnoThe background color of the top window must be a hexadecimal color value, and only iOS Support2.5.1
background-color-bottomstringnoThe background color of the bottom window must be a hexadecimal color value, and only iOS Support2.5.1
root-background-colorstringnoBackground color for page content, used for white space and page size changes resize Animation periodTemporary free zone3.0.1
scroll-topstring""noScroll position, you can use the px or rpx When set, the page scrolls to the corresponding location3.0.1
scroll-durationnumber300noScroll animation length3.0.4
page-stylestring""noPage root node style, which is the ancestor of all page nodes, equivalent to HTML to hit the target body node2.5.1
page-font-sizestring""nopage page You can set the font size to system Which indicates the font size of Phiz using the current user's settings2.11.4
root-font-sizestring""noThe root font size of the page, all of the rem The font size will be used as a reference value, that is 1rem Is equal to the font size.Self phizclip version 2.11.0 Can also be set to system2.5.1
page-orientationstring""noThe orientation of the page can be car portrait or landscape3.0.1
bindresizeeventhandlenoTriggered when page size changes resize Events, event.detail = { size: { windowWidth, windowHeight } }2.11.4
bindscrolleventhandlenoTriggered when page size changes resize Events, event.detail = { size: { windowWidth, windowHeight } }2.5.1
bindscrolldoneeventhandlenoIf you change scroll-top Property to cause the page to scroll, triggered when the page scroll ends scrolldone event2.11.4