What tags can be used in WeChat mini programs?

angryTom
Release: 2020-03-28 09:37:14
Original
13510 people have browsed it

To develop a WeChat mini program, we must first learn what the basic tags of the mini program page are. In fact, small programs are the same as ordinary h5 development, except that the labels are different. Today we will learn about the labels that small programs can use.

What tags can be used in WeChat mini programs?

What are the tags that can be used in WeChat mini programs

1. The view tag is equivalent to div (its characteristic is that Without the influence of other styles, the width is 100%);

2. The text tag is equivalent to span (its characteristic is that it will not occupy a single line without the influence of other styles. The width and height are determined by The content is stretched, and it is useless for you to set the width and height at this time);

3. The image tag is more important, the image component. The network address and local image address can be placed in the src attribute.

4. button This is the button component.

5. input This is the input box component.

6. navigator This is the navigation component.

7. icon This is an icon component, you can use built-in icons.

8. Picker supports three selectors: normal, date and time by default.

In addition to the officially announced components of the mini program, some tags such as span, em, strong, and b are also supported, but they are not officially recommended.

PHP Chinese website, a large number of free small program development tutorials, welcome to learn!

The above is the detailed content of What tags can be used in WeChat mini programs?. 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