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

高洛峰
Release: 2017-03-06 17:03:26
Original
1199 people have browsed it

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>
Copy after login


At this time, there is no spacing between p.

If written as:

The code is as follows:

<p>.......</p><p> 
.......</p>
Copy after login


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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!