解决html中 在不同浏览器中占位大小不统一的问题

时间:2023-03-08 16:49:06

直接在html文档中使用 来表示空格,在不同浏览器中的占位大小是不一样的.

为什么呢,因为不同浏览器默认的字体是不一样的,不同字体下的空格表示 占位大小不一致.

这就好办了嘛,我们对 指定使用同样的字体就能让 显示同样的占位了.

经过测试,当指定Times New Roman字体时,各浏览器都支持良好,每4个 显示的占位是一个汉字字符,而使用宋体或黑体则不能达到目的.

即:

  

<span style="font-family:'Times New Roman';">&nbsp;&nbsp;&nbsp;&nbsp;</span>

表示一个汉字字符的占位.

例子:

  aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAooAAACNCAIAAAC/jMxKAAAgAElEQVR4nO2dP2scSffvn+wX3TcxPEwPi1lQ6ERiuXARzGhhArOWcl2DwFphuxX+zIIDBUYXT9R2LBYMwomCS4O5yhbFSnYGoeQJ/AIcydHeoKq769Q5p/70n5me0YFvYI96qquqa+rT59SpOv9KRgORSCQSiUS90r9WXgORSCQSiUSWBM8ikUgkEvVOgmeRSCQSiXonwbNIJBKJRL3TRuL5JF/MpqNBcnr18PB9no1XXR+RSCQSieK0DDxPk8Mfw1c/htsd32icLb4/PBTKT5LpbP5wlZ2eTEeDNP/+oJgtEm2KJmcvvt29+Xaxs/KaSCtEotbVKp6T/R/DV3lifb6VDV/9GL76MdxPW2/AdDZ/MJD88D0/tf56Vd50mt3aF4giNHz7n5//LPV52MVdji/elDO1+W9CRwff7t6Uujxaef8sv5Jb59eq5INj+087l8Z9OyWf5zE1aoVo/dRkPET8/Fn9+vvrf778ofT1eWQFfvnt/ssf/7zbXX03Ki0Bz0u1nhGeb7MpuOAhP1l5p69Kzz7//Od/fnpW8+vLwLNpSKnf583ZFntZZ+Q7vmiBFl1XMnHZncvDM12H8d4NbLuhF+fjwFasXMWrA6jb1vn1m2/Xe5OlVQO+5PW1r7SaPM3Anz8vk811CP0Y8bwsefH82NUMz6WGbzvGs/pNmv+GUpOmPcu3qDbw3Hklw7RzuRQ8248pBs89Vm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aAg0K3RiYgA81cKxuHp3AcxcbVtq1kz0GHbItEIpGoN9okPItEIpFItCESPItEIpFI1DsJnkUikUgk6p3+P28sq3SIKVnvAAAAAElFTkSuQmCC" alt="" />.

效果如下:

  解决html中&nbsp;在不同浏览器中占位大小不统一的问题

嗯,效果很好,成功实现对齐.

ps:此方法不对html文档造成其他影响,不需修改编码方式,缺点就是要嵌套标签,匿.

-----------------------原创,转载请把本文链接附上http://www.cnblogs.com/suspiderweb/