我的网站需要这个。 背景图像应保持静态,但其上的网页必须在 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/