How to introduce css files into the mini program: 1. Create a directory in the mini program project to install the css file; 2. Rename the css file to "**.wxss"; 3. In "app.wxss" Use the "@import "path to the css file";" statement to import it.
The operating environment of this tutorial: windows7 system, css3 version, thinkpad t480 computer.
How to import external css in WeChat applet
1: Download the external css file
2: Create a directory to install css file
3: Rename the file to **.wxss;
4: In app.wxss Just import it
The code is as follows:
@import "/style/iconfont.wxss";
For more programming-related knowledge, please visit:Programming Teaching! !
The above is the detailed content of How to introduce external css into a small program. For more information, please follow other related articles on the PHP Chinese website!