如何在 IE 8 及更低版本中仅使用 CSS 旋转 90 度?
How can I rotate 90 degrees in IE 8 and lower, using only CSS?
.horizontal {
display: block;
width: 300px;
height: 100px;/*height*/
background: #FF0000;
margin: auto;
margin-top: 110px;
text-align: center;
border: 5px solid #000000;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
你要使用 filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
CSS
.horizontal {
display: block;
width: 300px;
height: 100px;/*height*/
background: #FF0000;
margin: auto;
margin-top: 110px;
text-align: center;
border: 5px solid #000000;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
transform: rotate(-90deg);
}
更多信息
这篇关于在 IE8 及更低版本的 CSS 中旋转 90 度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
Selenium WebDriver 从 CSS 属性“内容"获取文本在Selenium WebDriver get text from CSS property quot;contentquot; on a ::before pseudo element(Selenium WebDriver 从 CSS 属性“内容获取文本在
IE https CORS XHR 请求因 Script7002 失败:XMLHttpRequest:网IE https CORS XHR request fails with Script7002: XMLHttpRequest: Network Error 0x2eff(IE https CORS XHR 请求因 Script7002 失败:XMLHttpRequest:网络
CSS垂直旋转文本 - 两侧的额外空间CSS Rotate Text Vertical - Extra Space on both sides(CSS垂直旋转文本 - 两侧的额外空间)
Safari CSS Bug:动画旋转方向不正确?Safari CSS Bug: Animation Rotation Direction Incorrect?(Safari CSS Bug:动画旋转方向不正确?)
使用鼠标旋转画布中的图像To rotation an image in canvas using mouse(使用鼠标旋转画布中的图像)
html5 - 以相对坐标获取设备方向旋转html5 - Get device orientation rotation in relative coordinate(html5 - 以相对坐标获取设备方向旋转)