【发布时间】:2010-10-04 18:35:10
【问题描述】:
我在 HTML 代码中编写了一些 CSS 来创建翻转按钮。然后我尝试用 IE 7 运行它,结果大吃一惊!它不运行。事实上,它同时显示了按钮和底层翻转。如何解决 IE 无法缓存背景图片的问题?最好使用 CSS,但会尝试使用 javascript。
示例 CSS:
#Menu
{
width: 100%;
height: 32px;
margin-top: 93px;
padding-left: 13px;
}
#Menu a
{
height: 32px;
line-height: 32px;
width: 123px;
background: url("img/menu.png") top left no-repeat;
background-position: -123px 0;
float: left;
margin-left: 3px;
text-decoration: none;
color: #1e1e1d;
font-size: 12px;
text-align: center;
}
#Top #Menu a:hover, #Top #Menu a.active
{
background-position: 0px 0;
text-decoration: underline;
}
【问题讨论】:
-
请提供一些示例代码。 ie7上的css翻转应该没有任何问题
标签: javascript css internet-explorer