Home >WeChat Applet >Mini Program Development >How to introduce external css into a small program

How to introduce external css into a small program

青灯夜游
青灯夜游Original
2020-12-15 10:38:558019browse

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.

How to introduce external css into a small program

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

How to introduce external css into a small program

3: Rename the file to **.wxss;

How to introduce external css into a small program

4: In app.wxss Just import it

The code is as follows:

@import "/style/iconfont.wxss";

How to introduce external css into a small program

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn