The PRE tag is on its own line_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:26:13
Original
1154 people have browsed it

This post was last edited by jieisme on 2014-01-02 16:15:21




 <br> This way<br> 

Yeah!!!
 <br> That way<br> 



< ;/HTML
The display result is as follows:
This way

Yeah!!!

That way
Problems that occur:
Question: In terms of display effect, Yeah! !!Why are there two extra blank lines above and below this line?

Reply to discussion (solution)

Why does the

 tag appear as a blank line? </p> <p class="sougouAnswer"> Why does the page have extra blank lines above/below the <pre class="brush:php;toolbar:false"> content when there is text above or below it? </p> <p class="sougouAnswer"> Please enlighten me.  <br> Or you can try it: <br> <ul> <br> <li>Chapter 1<br> <li>Chapter 2<br> </ul> <br> <pre class="brush:php;toolbar:false"> <br> test test test <br> 


The effect shows: 2 blank lines will appear between Chapter 2 and test test test lines.
Now I want to use the pre tag and only have a blank line appear. What should I do?

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!