asp.net - 如何 : Background image should remain static but the webpage on it must scroll down in asp. 网络

标签 asp.net html css web

我的网站需要这个。 背景图像应保持静态,但其上的网页必须在 asp.net 中向下滚动

<head runat="server"> <title></title>

   <style type="text/css"> 
    body { background-image: url('~/saibaba.jpg'); 
    background-repeat: no-repeat;
     background-position: center center; 
    background-attachment: fixed; } 
    #form2 { font-weight: 700; }
     </style>
     </head>

我的代码还是不行

最佳答案

body { 背景附件:已修复; }

关于asp.net - 如何 : Background image should remain static but the webpage on it must scroll down in asp. 网络,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13816964/

相关文章:

c# - OracleInternal.MTS.DTCPSPEManager 错误

javascript - ion-content 与 ion-header-bar 重叠

javascript - 在下一个 flexslider 幻灯片中滑动后,css 动画不起作用

asp.net - 尝试执行存储过程时出现无效的对象名称错误?

asp.net - 为什么此 ASP.Net 代码隐藏中的 if 语句不起作用?

javascript - 如何使用jquery mask插件将光标移动到第一个字符位置?

html - 导入字体 Internet Explorer

html - 使 div 出现在每个浏览器的页面底部

html - 有没有一种方法可以自动正确调整我的 html/css 网页的大小?

html - 使用具有绝对值的背景大小的最佳实践