Home > Web Front-end > HTML Tutorial > The difference between display:inline, block and inline-block_html/css_WEB-ITnose

The difference between display:inline, block and inline-block_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:56:38
Original
1389 people have browsed it

display:block就是将元素显示为块级元素.

  block元素的特点是:
  总是在新行上开始;
  高度,行高以及顶和底边距都可控制;
  宽度缺省是它的容器的100%,除非设定一个宽度
  

,

,

,
,

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