Home>Article>Web Front-end> What is the difference between wxss and css3
Differences: 1. wxss cannot directly set the displayed background image through the background-image attribute in css3; 2. There are no window or document objects in the document flow in the applet. When using the css3 attribute position Please pay attention to setting the fixed attribute value for the base node.
The difference between wxss and css3
For example, I write the following in wxss
background-image: url(imageB.png);
Console printing:
pages/index/index.wxss 中的本地资源图片无法通过 WXSS 获取,可以使用网络图片,或者 base64,或者使用标签。
使用时应注意,为基础节点container设置fixed属性,否则position=absolute不会生效 /**app.wxss**/ .container { height: 100%; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 200rpx 0; box-sizing: border-box; position: fixed; }
3. Others
support animation @keyframes, but it seems that the manufacturer prefix cannot be added.
Support transition transition.
For more programming-related knowledge, please visit:Introduction to Programming! !
The above is the detailed content of What is the difference between wxss and css3. For more information, please follow other related articles on the PHP Chinese website!