Home  >  Article  >  Web Front-end  >  用br写出的字体效果为什么会比用pre写出的字体大呢?_html/css_WEB-ITnose

用br写出的字体效果为什么会比用pre写出的字体大呢?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:351187browse

新学员请教论坛朋友。
有以下两段代码,为什么用br写出来的就比pre写出来的字体大呢?
以下是br的


以下是pre的



先感谢各位朋友帮忙。谢谢。


回复讨论(解决方案)

没有人吗?前辈们都在忙着啪啪啪敲码呢吗?

<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>Document</title></head><body><!--         标签本身就一些默认的CSS样式,除了 <div> <span>     文字,默认的font-size:16px;    <pre class="brush:php;toolbar:false">,默认的font-size:13px;--><p>    锄禾日当午,    汗滴禾下土。</p><pre class="brush:php;toolbar:false">    锄禾日当午,    汗滴禾下土。

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