gpt4 book ai didi

html - 我们有 text-align : -webkit-right;(Google and safari)text-align: -moz-right;(Firefox)text-align: -o-right;(Opera). 的浏览器前缀 IE 是什么?

转载 作者:太空宇宙 更新时间:2023-11-04 11:53:01 30 4
gpt4 key购买 nike

我们有浏览器前缀或黑客

(for Google and Safari)  text-align: -webkit-right;
(for Firefox) text-align: -moz-right;
(for Opera) text-align: -o-right;

IE 有什么用?

下面的代码在 chrome、Mozilla、safari 和 opera 中为我工作,但在 IE 中文本不正确....任何答案?

 style="display: table-cell; width: 25%; vertical-align: bottom; text-align: -webkit-right;text-align: -moz-right;text-align: -o-right"

最佳答案

These browser prefixes are needed as the browsers experiment and test out their implementations of the newer CSS3 properties. Sometimes all the prefixes are not always needed, but it usually does not hurt to include them, as long as you make sure to put the non-prefixed version last.

text-align: -webkit-right;
text-align: -moz-right;
text-align: -o-right;
text-align: -ms-right;
text-align: right;

这很重要的原因有很多,但我不打算在这里深入探讨。只需将始终包含无前缀版本并将其放在末尾作为规则即可。

Internet Explorer 9 supports many (but not all) of the favorite CSS3 properties. You can use border-radius without any vendor-prefix, for example.

一些属性到目前为止还在开发中,一些浏览器正在删除前缀。 Border-radius 是一个在这一点上发展得很好的属性。最新版本的主要浏览器似乎都支持它而没有供应商前缀。但是,将它们保留在代码中可以让您确保不更新浏览器的用户仍能得到服务。

关于html - 我们有 text-align : -webkit-right;(Google and safari)text-align: -moz-right;(Firefox)text-align: -o-right;(Opera). 的浏览器前缀 IE 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30501693/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com