Html 在IIS 6.1中部署时出现页脚css问题
我将页脚设置为固定,这样即使页面向下滚动,页脚也会保持原样 当我在VS2010中浏览它,在Chrome中运行/调试时,它工作得非常完美 但当我将它部署到IIS6.1,并使用Google Chrome浏览它时,它并不是我想要的。然而,它在IE和Firefox中确实有效。这是Chrome特有的问题吗?我正在做这样的事情:Html 在IIS 6.1中部署时出现页脚css问题,html,.net,css,footer,Html,.net,Css,Footer,我将页脚设置为固定,这样即使页面向下滚动,页脚也会保持原样 当我在VS2010中浏览它,在Chrome中运行/调试时,它工作得非常完美 但当我将它部署到IIS6.1,并使用Google Chrome浏览它时,它并不是我想要的。然而,它在IE和Firefox中确实有效。这是Chrome特有的问题吗?我正在做这样的事情: <div id="footer"> Footer goes here </div> 请就可能的解决方案提供建议,谢谢 试着(您的IIS管理器然后是您
<div id="footer">
Footer goes here
</div>
请就可能的解决方案提供建议,谢谢 试着(您的IIS管理器然后是您的浏览器缓存。这可能会解决您的问题。您是否检查了真实浏览器中的输出?是的,它与我在VS run中看到的不同。您在哪个浏览器中查看部署的网站?您是指VS2010中的设计视图还是通过IDE运行网站?请查看我的编辑,我在VS run中运行网站。)使用Chrome浏览器的g visual studio。哇!很抱歉成为一个noob!清除浏览器历史记录就可以了!非常感谢!
#footer {
background: #2d89ef;
bottom: 0px;
color: white;
font-family: 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
height: 50;
left: 0%;
position: fixed!important;
position: fixed!important;
right: 0%;
text-align: center;
top: expression((0-(footer.offsetHeight)+
(document.documentElement.clientHeight?
document.documentElement.clientHeight:
document.body.clientHeight)+(ignoreMe=document.documentElement.scrollTop?
document.documentElement.scrollTop:document.
body.scrollTop))+'px');
visibility: visible;
width=100%;
}