粗体标签在IE和chrome中的不同效果
我用粗体标签包围了文本,它在 IE 和 Chrome 中的呈现方式不同。
IE图像-->
Chrome 图像 -->
谁能弄清楚这里可以做什么?
谢谢
I have surrounded the text with bold tag, It renders differently in IE and Chrome.
IE image -->
Chrome image -->
Can anyone please figure out what can be done here?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
两种浏览器都有不同的渲染/布局引擎,结果很可能不同。
这是双方开发人员的品味和应用经验问题关于如何渲染字体(以及图片和 HTML 等...)的不同解释
但在大多数情况下,没关系;)。
这里有更多内容和此处
Both browsers have a different rendering/layout engine, the results could most likely different.
It is a matter of taste and applied experience of the developers on both sides that delivers a different interpretation on how to render fonts (and pictures, and HTML etc...)
But in most cases, it does not matter ;).
More stuff here and here
IE 和 Chrome 渲染
标记的方式不同,通常是由于浏览器默认 CSS 以及引擎决定渲染它的方式而修复,以使它们接近相同的效果,即使用 css。
但事实上,您必须预料到每个浏览器上的外观会存在一些差异,只有您可以决定什么是可接受的差异:)
IE and Chrome render
<b>
tag differently usually due to the browsers default CSS and how the engine decides to render it a fix to get them close to the same would be to use css.However in truth you will have to expect some differences in appearance on each browser only you can decide what is an acceptable difference :)
尝试使用
代替。可能会更加一致。
另外,确保每个浏览器中的字体大小相同?是明确规定的吗?
除此之外,Chrome 和 IE 的渲染方式不同。
IE 可以使用 ClearType 使文本变宽。
这里有关于禁用 ClearType 的讨论:IE8:禁用cleartype?
Try using
<strong>
instead. It may be more consistent.Also, make sure the font is the same size in each browser? Is it explciitly set?
Apart from that, Chrome and IE render things differently.
IE may make text wider, using ClearType.
There's a discussion about disabling ClearType here: IE8: Disable cleartype?
除了将所有文本剪切为图像之外,您对此无能为力。当涉及到网页排版时,渲染引擎、安装的字体、ClearType 调整/禁用、用户偏好等都会对您不利。
Short of cutting all your text as images, there's nothing you can do about this. Rendering engines, installed fonts, ClearType tuning/disabling, user preferences, etc. will all conspire against you when it comes to web typography.