应用时的IE8的问题位置:固定 [英] Issues with IE8 when applying Position: fixed
本文介绍了应用时的IE8的问题位置:固定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的CSS代码:
background-color: White;
border: 2px solid black;
padding: 10px;
position: fixed;
right: 5px;
top: 0;
width: 250px;
它在Chrome / Firefox / Safari中工作的很好,但我不能得到它在IE8。 div框的位置不在右上角。任何想法如何我可以解决这个问题?
It works great in Chrome/Firefox/Safari, but I can't get it working in IE8. The position of div box isn't not in the top right corner. Any ideas on how I can solve this problem?
与HTML
<div style="position:fixed;top:0;right:5px;background-color:White;padding:10px;border:2px black solid;width:250px;">
<div>content here</div>
</div>
推荐答案
尝试在上面的文档顶部
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd">
这篇关于应用时的IE8的问题位置:固定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文