search
HomeWeChat AppletMini Program DevelopmentHow to introduce external css into a small program

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools