< br>中有多少个像素?

编程入门 行业动态 更新时间:2024-10-28 04:25:08
本文介绍了< 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;中有多少个像素?

本文发布于:2023-10-20 13:08:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1511057.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中有   多少个   像素   lt   amp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!