The need to introduce wxss files in wxml
measurement unit
1, rpx: may be adaptive according to the screen width, a predetermined width of the screen 750rpx
page px = 750 rpx
px = 750 rpx / page
2、calc()
750 and rpx no spaces
Both sides of the operator and do not include spaces
Style Import
@import './style.wxss';
@import relative path followed by the need to import external style sheet associated with; statement indicating the end
Inline style
Support the use of style, class attributes to control the style of the component frame assembly.
Selector
Currently supported selectors are:
.class
#id
element
element, element
::after
::before
The global style and local style
App.wxss define a style in the global style, acting on each page
Styles defined in a page file for the partial style wxss, acts only in the corresponding page, and will cover the same app.wxss selector.