Home > Web Front-end > HTML Tutorial > Basic advanced knowledge of html_html/css_WEB-ITnose

Basic advanced knowledge of html_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:43:13
Original
909 people have browsed it

The difference between inline and block:

网页一般是两种元素组合起来的,一种是内联元素,也就是行内显示,加上width和height没效果。一种是区块元素,可以加上对应的width和height,通常使用在网页的布局,最常用的就是<div>标签。display:block;的意思把内联元素转换为区块元素display:inline;的意思是把区块元素转换成内联元素例如:<span></span>就属于内联标签,如果你想把他当做<div></div>这类标签来使用,这时display:block;就可以使用了!【要注意的是,任何标签的使用最好遵循WEB标准】<ul><li></li></ul>就属于块级元素,你如果想让列表显示在一行,这时就可以对<li>标签设置display:inline;
Copy after login

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