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

How to introduce external css into a small program

青灯夜游
Release: 2023-01-04 09:37:26
Original
8010 people have browsed it

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";
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template