pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <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="seyuomu" 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旋轉屬性

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

          • <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="icwq0q2" id='TRL07'><tfoot id='TRL07'></tfoot><dl id='TRL07'><fieldset id='TRL07'></fieldset></dl></div>
                <tfoot id='TRL07'></tfoot>

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

                問題描述

                我想將 DIV 旋轉到一定程度.在 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 設置為 4

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

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

                這意味著 DIV 將旋轉到 90 或 180 或 270 或 360 度.但是如果我只需要將 DIV 旋轉 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 中旋轉 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.

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

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

                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 樣式(盡管通常帶有供應商前綴),因此您可以使用以下代碼在所有瀏覽器中實現相同的效果其他瀏覽器:

                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) */
                

                希望對您有所幫助.

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

                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 添加到您的網站后,您應該能夠為 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 中使用的傳統 filter 樣式要容易得多.

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

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

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

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

                相關文檔推薦

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

                <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="uequasc" 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>
                        • 主站蜘蛛池模板: 400电话_400电话申请_888元包年_400电话办理服务中心_400VIP网 | 成都离婚律师|成都结婚律师|成都离婚财产分割律师|成都律师-成都离婚律师网 | 贵州科比特-防雷公司厂家提供贵州防雷工程,防雷检测,防雷接地,防雷设备价格,防雷产品报价服务-贵州防雷检测公司 | 钢衬四氟管道_钢衬四氟直管_聚四氟乙烯衬里管件_聚四氟乙烯衬里管道-沧州汇霖管道科技有限公司 | 化妆品加工厂-化妆品加工-化妆品代加工-面膜加工-广东欧泉生化科技有限公司 | 新型游乐设备,360大摆锤游乐设备「诚信厂家」-山东方鑫游乐设备 新能源汽车电池软连接,铜铝复合膜柔性连接,电力母排-容发智能科技(无锡)有限公司 | 山东商品混凝土搅拌楼-环保型搅拌站-拌合站-分体仓-搅拌机厂家-天宇 | 鼓风干燥箱_真空烘箱_高温干燥箱_恒温培养箱-上海笃特科学仪器 | 武汉森源蓝天环境科技工程有限公司-为环境污染治理提供协同解决方案 | 横河变送器-横河压力变送器-EJA变送器-EJA压力变送器-「泉蕴仪表」 | 空心明胶胶囊|植物胶囊|清真胶囊|浙江绿键胶囊有限公司欢迎您! | CCC验厂-家用电器|服务器CCC认证咨询-奥测世纪 | 山东艾德实业有限公司| 【铜排折弯机,钢丝折弯成型机,汽车发泡钢丝折弯机,线材折弯机厂家,线材成型机,铁线折弯机】贝朗折弯机厂家_东莞市贝朗自动化设备有限公司 | 硅PU球场、篮球场地面施工「水性、环保、弹性」硅PU材料生产厂家-广东中星体育公司 | 北京晚会活动策划|北京节目录制后期剪辑|北京演播厅出租租赁-北京龙视星光文化传媒有限公司 | 土壤有机碳消解器-石油|表层油类分析采水器-青岛溯源环保设备有限公司 | 加热制冷恒温循环器-加热制冷循环油浴-杭州庚雨仪器有限公司 | 大行程影像测量仪-探针型影像测量仪-增强型影像测量仪|首丰百科 大通天成企业资质代办_承装修试电力设施许可证_增值电信业务经营许可证_无人机运营合格证_广播电视节目制作许可证 | 高温高压釜(氢化反应釜)百科 | 铝镁锰板厂家_进口钛锌板_铝镁锰波浪板_铝镁锰墙面板_铝镁锰屋面-杭州军晟金属建筑材料 | 仿古瓦,仿古金属瓦,铝瓦,铜瓦,铝合金瓦-西安东申景观艺术工程有限公司 | 新疆乌鲁木齐网站建设-乌鲁木齐网站制作设计-新疆远璨网络 | 北京印刷厂_北京印刷_北京印刷公司_北京印刷厂家_北京东爵盛世印刷有限公司 | 杭州代理记账费用-公司注销需要多久-公司变更监事_杭州福道财务管理咨询有限公司 | 真空粉体取样阀,电动楔式闸阀,电动针型阀-耐苛尔(上海)自动化仪表有限公司 | 半自动预灌装机,卡式瓶灌装机,注射器灌装机,给药器灌装机,大输液灌装机,西林瓶灌装机-长沙一星制药机械有限公司 | 釜溪印象网络 - Powered by Discuz! | hc22_hc22价格_hc22哈氏合金—东锜特殊钢 | 鄂泉泵业官网|(杭州、上海、全国畅销)大流量防汛排涝泵-LW立式排污泵 | 紫外可见光分光度计-紫外分光度计-分光光度仪-屹谱仪器制造(上海)有限公司 | 烘箱-工业烘箱-工业电炉-实验室干燥箱 - 苏州华洁烘箱制造有限公司 | 篷房[仓储-婚庆-展览-活动]生产厂家-江苏正德装配式帐篷有限公司 | 济南品牌包装设计公司_济南VI标志设计公司_山东锐尚文化传播 | 灌装封尾机_胶水灌装机_软管灌装封尾机_无锡和博自动化机械制造有限公司 | 玻纤土工格栅_钢塑格栅_PP焊接_单双向塑料土工格栅_复合防裂布厂家_山东大庚工程材料科技有限公司 | 重庆波纹管|重庆钢带管|重庆塑钢管|重庆联进管道有限公司 | 钢制拖链生产厂家-全封闭钢制拖链-能源钢铝拖链-工程塑料拖链-河北汉洋机械制造有限公司 | 岩石钻裂机-液压凿岩机-劈裂机-挖改钻_湖南烈岩科技有限公司 | 金蝶帐无忧|云代账软件|智能财税软件|会计代账公司专用软件 | 旅游规划_旅游策划_乡村旅游规划_景区规划设计_旅游规划设计公司-北京绿道联合旅游规划设计有限公司 |