本文介绍了< br>中有多少个像素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< br> 标签添加了多少个像素?我知道< br> 高度可以通过CSS line-height 属性进行控制。不同的浏览器具有相同的值吗?

解决方案

它增加了浏览器如何计算 line-height



究竟有多少像素取决于浏览器,因为浏览器是渲染文字毕竟。为什么这对你有什么影响还不清楚,除非你使用< br> 来表示它不适用的内容,比如


How many pixels does a <br> tag add? I know <br> height can be controlled via CSS line-height property. Do different browsers have same value or not?

解决方案

It adds as much as is resulted by how the browser calculates line-height.

Exactly how many "pixels" this is is up to the browser, since the browser is the one rendering the text after all. Why this should make any difference to you is not clear, unless you're using <br> for something it was not intended for, such as arbitrary spacing.

这篇关于&lt; br&gt;中有多少个像素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 22:13