[英]What's wrong with this in IE?
.bookmarkmenu
{
position:fixed;
background-color:#ff4b4b;
height:60px;
width:100px;
z-index:15;
left:0px;
cursor:pointer;
overflow:hidden;
}
.bookmarkmenu:hover
{
background-color:#ff4b4b;
height:60px;
width:140px;
}
#bookmark_element
{
top:80px;
}
<div class="bookmarkmenu" id="bookmark_element">
All
</div>
It shuold be a the left of page over other elements. 它应该位于页面其他元素的左侧。 It works in Chrome and Firefox, but not IE.
它适用于Chrome和Firefox,但不适用于IE。 It put them at the end of page.
它把它们放在页面的末尾。 hover also not function...
悬停也无法使用...
If you're in IE7 or older, position:fixed
is invalid. 如果您使用的是IE7或更早版本,则
position:fixed
无效。 http://caniuse.com/#feat=css-fixed http://caniuse.com/#feat=css-fixed
Also, in newer versions of IE, you must specify <!doctype html>
. 另外,在较新版本的IE中,必须指定
<!doctype html>
。
I forgot to put 我忘了放
DOCTYPE html
DOCTYPE HTML
at the beginning. 一开始。 It work now.
现在可以工作了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.