问题描述:

CSS block quote don't add empty lines to the qoute

example :

<blockquote>

this is number 1

this is number 2

</blockquote>

this will appear as the following but the "" > "" don't appear and only empty line appear

> this is number 1

>

> this is number 2

i want them empty line to be included on the blockquote .

网友答案:

A > is a reserved character in HTML. It's used for building tags.

You need to escape it, or the browser will think it's code and not display it.

Use &lt; for <, and &gt; for >.

<blockquote>
this is number 1<br>
&gt;<br><!-- with "greater than" symbol -->
this is number  2<br>
</blockquote>
<hr>
<blockquote>
this is number 1<br>
<br><!-- with just an empty line -->
this is number  2<br>
</blockquote>
相关阅读:
Top