我得到了一个带有下拉菜单的90度旋转菜单的设计。当然,我已经让它在除IE8之外的所有浏览器上都能工作(我们不会针对更低的版本进行优化)。
这是中转站点:http://williamsandports.com/wp/
#navbar元素本身可以使用
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);使用非常棒的内置IE“开发人员工具”,我发现最外面的ul,也就是#menu-main-menu,仍然没有旋转,挂在屏幕的顶部,所以下拉元素不能正确地交互。
有人建议吗?我会采取任何修复,css,js,任何东西来完成这一个,当然除了静态图像:)你可以在FF或Chrome中查看相同的网站,看看完成的解决方案应该是什么样子。
发布于 2013-08-01 15:45:19
您不能在IE8中使用transform。你可以找到更多:http://caniuse.com/#search=transform。如果你想旋转,比如你的网站。你可以在IE8中使用静态图片和css sprites。这是演示,我修复了IE8的解决方案旋转。
HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Solution rotate in IE8</title>
<link rel="stylesheet" href="css/stylesheet.css">
<!--[if gte IE 9]>
<link rel="stylesheet" type="text/css" href="css/ie.css" />
<![endif]-->
</head>
<body>
<div class="container">
<div class="nav-bar">
<ul class="navigation">
<li><a href="#" class="home">Home</a></li>
<li><a href="#" class="about">About Us</a></li>
<li><a href="#" class="portfolio">Portfolio</a></li>
<li><a href="#" class="process">Our Process</a></li>
<li><a href="#" class="client">Client List</a></li>
<li><a href="#" class="consultation">Consultation</a></li>
<li><a href="#" class="contact">Contact Us</a></li>
</ul>
</div>
</div>
</body>
</html>CSS
- stylesheet.css: Use -webkit-transform: ratate(90度)
*,
*:before,
*:after {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; }
.container {
width: 900px;
margin-left: auto;
margin-right: auto; }
.nav-bar {
width: 100%;
position: relative; }
.nav-bar:before, .nav-bar:after {
content: "";
display: table; }
.nav-bar:after {
clear: both; }
.nav-bar {
*zoom: 1; }
.navigation {
background-color: #f2f2f2;
padding: 10px;
width: 100%;
position: absolute;
left: 40px;
top: 0;
-webkit-transform: rotate(90deg);
-webkit-transform-origin: 0 0; }
.navigation li {
display: inline-block; }
.navigation a {
color: #825a13;
font-weight: 700;
padding: 10px;
text-decoration: none;
text-transform: uppercase; }- css :使用IE8时的修复(使用图片和ie.css精灵)
.navigation {
background-color: transparent;
width: 40px; }
.navigation li {
display: block;
float: left; }
.navigation a {
background: url(../img/nav.png) no-repeat;
display: block;
text-indent: -9999px;
width: 40px;
height: 118px; }
.navigation a.home {
background-position: 0 0;
height: 75px; }
.navigation a.about {
background-position: 0 -86px;
height: 90px; }
.navigation a.portfolio {
background-position: 0 -187px;
height: 101px; }
.navigation a.process {
background-position: 0 -299px; }
.navigation a.client {
background-position: 0 -435px; }
.navigation a.consultation {
background-position: 0 -571px; }
.navigation a.contact {
background-position: 0 -706px; }图片:

我在IE8中测试工作正常。也许这不是最好的解决方案,但我希望它能帮助你在你的网站上使用。
https://stackoverflow.com/questions/16703459
复制相似问题