Home  >  Article  >  Web Front-end  >  Analysis of the differences between the spacing of multiple divs with inline-block and programming writing methods

Analysis of the differences between the spacing of multiple divs with inline-block and programming writing methods

高洛峰
高洛峰Original
2017-03-06 17:03:261189browse

The spacing between multiple p's with border and inline-block will be different according to the programming method. Let's see an example below to give you a feel. When learning inline-block, I found that the spacing between multiple p's with border and inline-block will be different according to the writing method of programming. When written as:

The code is as follows:

<p>.......</p> 
<p>.......</p>


At this time, there is no spacing between p.

If written as:

The code is as follows:

<p>.......</p><p> 
.......</p>


At this time, there is a gap between p.

For more related articles on the differences between the spacing of multiple inline-block divs and programming writing methods, please pay attention to 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