久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <i id='gu6yP'><tr id='gu6yP'><dt id='gu6yP'><q id='gu6yP'><span id='gu6yP'><b id='gu6yP'><form id='gu6yP'><ins id='gu6yP'></ins><ul id='gu6yP'></ul><sub id='gu6yP'></sub></form><legend id='gu6yP'></legend><bdo id='gu6yP'><pre id='gu6yP'><center id='gu6yP'></center></pre></bdo></b><th id='gu6yP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='gu6yP'><tfoot id='gu6yP'></tfoot><dl id='gu6yP'><fieldset id='gu6yP'></fieldset></dl></div>
      <bdo id='gu6yP'></bdo><ul id='gu6yP'></ul>

  1. <small id='gu6yP'></small><noframes id='gu6yP'>

    1. <tfoot id='gu6yP'></tfoot>
    2. <legend id='gu6yP'><style id='gu6yP'><dir id='gu6yP'><q id='gu6yP'></q></dir></style></legend>
    3. IE中的CSS旋轉(zhuǎn)屬性

      CSS rotate property in IE(IE中的CSS旋轉(zhuǎn)屬性)

          • <small id='TRL07'></small><noframes id='TRL07'>

            • <bdo id='TRL07'></bdo><ul id='TRL07'></ul>
                  <tbody id='TRL07'></tbody>
                <legend id='TRL07'><style id='TRL07'><dir id='TRL07'><q id='TRL07'></q></dir></style></legend>
                <i id='TRL07'><tr id='TRL07'><dt id='TRL07'><q id='TRL07'><span id='TRL07'><b id='TRL07'><form id='TRL07'><ins id='TRL07'></ins><ul id='TRL07'></ul><sub id='TRL07'></sub></form><legend id='TRL07'></legend><bdo id='TRL07'><pre id='TRL07'><center id='TRL07'></center></pre></bdo></b><th id='TRL07'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='TRL07'><tfoot id='TRL07'></tfoot><dl id='TRL07'><fieldset id='TRL07'></fieldset></dl></div>
                <tfoot id='TRL07'></tfoot>

                本文介紹了IE中的CSS旋轉(zhuǎn)屬性的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我想將 DIV 旋轉(zhuǎn)到一定程度.在 FF 中它可以運行,但在 IE 中我遇到了問題.

                I want to rotate the DIV to a certain degree. In FF it functions but in IE I am facing a problem.

                例如在以下樣式中,我可以將 rotation=1 設(shè)置為 4

                For example in the following style I can set rotation=1 to 4

                 filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
                

                這意味著 DIV 將旋轉(zhuǎn)到 90 或 180 或 270 或 360 度.但是如果我只需要將 DIV 旋轉(zhuǎn) 20 度,那么它就不再起作用了.

                This means that the DIV will be rotated to 90 or 180 or 270 or 360 degree. But if I need to rotate the DIV only 20 degrees, then it doesn't work anymore.

                如何在 IE 中解決這個問題?

                How may I solve this problem in IE?

                推薦答案

                要在 IE 中旋轉(zhuǎn) 45 度,您需要在樣式表中添加以下代碼:

                To rotate by 45 degrees in IE, you need the following code in your stylesheet:

                filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476); /* IE6,IE7 */
                -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; /* IE8 */
                

                您會從上面注意到 IE8 與 IE6/7 的語法不同.如果要支持所有版本的 IE,則需要提供這兩行代碼.

                You’ll note from the above that IE8 has different syntax to IE6/7. You need to supply both lines of code if you want to support all versions of IE.

                弧度中有可怕的數(shù)字;如果您想使用 45 度以外的角度(有 tutorials 如果你在網(wǎng)上找的話).

                The horrible numbers there are in Radians; you’ll need to work out the figures for yourself if you want to use an angle other than 45 degrees (there are tutorials on the internet if you look for them).

                另外請注意,IE6/7 語法由于過濾器字符串中未轉(zhuǎn)義的冒號符號而導致其他瀏覽器出現(xiàn)問題,這意味著它是無效的 CSS.在我的測試中,這會導致 Firefox 忽略過濾器之后的所有 CSS 代碼.這是您需要注意的事情,因為如果您被它抓住,可能會導致數(shù)小時的混亂.我通過將特定于 IE 的內(nèi)容放在單獨的樣式表中解決了這個問題,其他瀏覽器沒有加載.

                Also note that the IE6/7 syntax causes problems for other browsers due to the unescaped colon symbol in the filter string, meaning that it is invalid CSS. In my tests, this causes Firefox to ignore all CSS code after the filter. This is something you need to be aware of as it can cause hours of confusion if you get caught out by it. I solved this by having the IE-specific stuff in a separate stylesheet which other browsers didn’t load.

                當前所有其他瀏覽器(包括 IE9 和 IE10 — yay!)都支持 CSS3 transform 樣式(盡管通常帶有供應(yīng)商前綴),因此您可以使用以下代碼在所有瀏覽器中實現(xiàn)相同的效果其他瀏覽器:

                All other current browsers (including IE9 and IE10?—?yay!) support the CSS3 transform style (albeit often with vendor prefixes), so you can use the following code to achieve the same effect in all other browsers:

                -moz-transform: rotate(45deg);  /* FF3.5/3.6 */
                -o-transform: rotate(45deg);  /* Opera 10.5 */
                -webkit-transform: rotate(45deg);  /* Saf3.1+ */
                transform: rotate(45deg);  /* Newer browsers (incl IE9) */
                

                希望對您有所幫助.

                由于這個答案仍在投票中,我覺得我應(yīng)該用一個名為 CSS Sandpaper,即使在較舊的 IE 版本中,您也可以使用(接近)標準 CSS 代碼進行旋轉(zhuǎn).

                Since this answer is still getting up-votes, I feel I should update it with information about a JavaScript library called CSS Sandpaper that allows you to use (near) standard CSS code for rotations even in older IE versions.

                將 CSS Sandpaper 添加到您的網(wǎng)站后,您應(yīng)該能夠為 IE6–8 編寫以下 CSS 代碼:

                Once you’ve added CSS Sandpaper to your site, you should then be able to write the following CSS code for IE6–8:

                -sand-transform: rotate(40deg);
                

                比您通常需要在 IE 中使用的傳統(tǒng) filter 樣式要容易得多.

                Much easier than the traditional filter style you'd normally need to use in IE.

                還要注意 IE9(并且僅 IE9)的一個額外的怪癖,它支持標準 transform 和舊樣式 IE -ms-filter.如果您同時指定了它們,這可能會導致 IE9 完全混淆,并在元素本來所在的位置呈現(xiàn)一個純黑框.最好的解決方案是使用上面提到的 Sandpaper polyfill 來避免 filter 樣式.

                Also note an additional quirk specifically with IE9 (and only IE9), which supports both the standard transform and the old style IE -ms-filter. If you have both of them specified, this can result in IE9 getting completely confused and rendering just a solid black box where the element would have been. The best solution to this is to avoid the filter style by using the Sandpaper polyfill mentioned above.

                這篇關(guān)于IE中的CSS旋轉(zhuǎn)屬性的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Selenium WebDriver get text from CSS property quot;contentquot; on a ::before pseudo element(Selenium WebDriver 從 CSS 屬性“內(nèi)容獲取文本在 ::before 偽元素上)
                IE https CORS XHR request fails with Script7002: XMLHttpRequest: Network Error 0x2eff(IE https CORS XHR 請求因 Script7002 失敗:XMLHttpRequest:網(wǎng)絡(luò)錯誤 0x2eff)
                CSS Rotate Text Vertical - Extra Space on both sides(CSS垂直旋轉(zhuǎn)文本 - 兩側(cè)的額外空間)
                Safari CSS Bug: Animation Rotation Direction Incorrect?(Safari CSS Bug:動畫旋轉(zhuǎn)方向不正確?)
                Rotating 90 degrees in CSS in IE8 and lower(在 IE8 及更低版本的 CSS 中旋轉(zhuǎn) 90 度)
                To rotation an image in canvas using mouse(使用鼠標旋轉(zhuǎn)畫布中的圖像)

                <small id='sGpIl'></small><noframes id='sGpIl'>

              • <i id='sGpIl'><tr id='sGpIl'><dt id='sGpIl'><q id='sGpIl'><span id='sGpIl'><b id='sGpIl'><form id='sGpIl'><ins id='sGpIl'></ins><ul id='sGpIl'></ul><sub id='sGpIl'></sub></form><legend id='sGpIl'></legend><bdo id='sGpIl'><pre id='sGpIl'><center id='sGpIl'></center></pre></bdo></b><th id='sGpIl'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='sGpIl'><tfoot id='sGpIl'></tfoot><dl id='sGpIl'><fieldset id='sGpIl'></fieldset></dl></div>
                  <bdo id='sGpIl'></bdo><ul id='sGpIl'></ul>

                    <tfoot id='sGpIl'></tfoot>

                          <tbody id='sGpIl'></tbody>

                      1. <legend id='sGpIl'><style id='sGpIl'><dir id='sGpIl'><q id='sGpIl'></q></dir></style></legend>
                        • 主站蜘蛛池模板: 国产精品久久久久久久岛一牛影视 | 全免一级毛片 | 亚洲三区在线观看 | 91精品久久久久久久久久入口 | 国产人免费人成免费视频 | 欧美三区视频 | aacc678成免费人电影网站 | 999国产视频 | 91精品久久久久久久 | 欧美二区三区 | 免费美女网站 | 亚洲精品乱码久久久久久按摩观 | 91精品亚洲 | 国产精品国产三级国产aⅴ浪潮 | 狠狠干天天干 | 久久精品无码一区二区三区 | 久久综合一区二区 | 自拍偷拍第一页 | 精品综合 | 亚洲午夜视频在线观看 | 欧美一区免费在线观看 | 亚洲国产成人在线视频 | 亚洲最色网站 | 黄色网页在线观看 | 免费观看www | 欧美黄在线观看 | 性国产丰满麻豆videosex | 亚洲久草 | 精品香蕉一区二区三区 | 亚洲综合大片69999 | 激情av免费看 | 日日噜噜噜夜夜爽爽狠狠视频, | 青草久久免费视频 | 二区av | 亚洲精品久久久久久久久久久 | 国内精品视频免费观看 | 日韩成人 | 亚洲人在线观看视频 | www精品 | 亚洲综合成人网 | 国产高清一区二区三区 |