H5 block-level tag summary

php中世界最好的语言
Release: 2018-01-10 09:24:49
Original
2727 people have browsed it

This time I will bring you a summary of H5 block-level tags. How to use H5 block-level tags? What are theprecautionswhen using H5 block-level tags? The following is a practical case, let’s take a look.

Block-level elements, simply put, are elements that occupy their own line. Its characteristics:

① always starts on a new line;

② height, line height andouter marginandinner margincan be used Control;

 ③The width defaults to 100% of its container, unless a width is set.

④ It can accommodateinline elementsand other block elements

The summary code is as follows:

    Document 
盒子

标题1

标题2

标题3

文章

  1. 导航1
  2. 导航2
  3. 导航3
  • 导航1
  • 导航2
  • 导航3
名词
解释名词的位置
表格头部
星期一 星期二
上课 上课
Copy after login

I believe you have mastered the method after reading these cases , for more exciting content, please pay attention to other related articles on the php Chinese website!

Related reading:

How to create a drag-and-drop effect in H5

About how old versions of browsers are not compatible with H5 and C3 Method

#How to draw graphics using H5’s CanvasAPI

The above is the detailed content of H5 block-level tag summary. 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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!