当前位置:编程学习 > C#/ASP.NET >>

关于VS2008 WEB应用程序设置背景图片问题

建了个母版页,想添加一个图片作为背景。但点background属性,弹了个对话框里没有任何图片可选。到底是怎么设置图片的呢?还有就是,添加了图片后怎么设置为整个窗口都被图片覆盖? --------------------编程问答-------------------- 楼主参考一下这个css
body{font-family: "宋体" , Arial;font-size: 12px;color: #000000;padding: 0px;margin: 0px;background-repeat: repeat-x;}
.myback{margin-left:10px;background: url(/Images/Login/ico_right.gif) no-repeat left;padding:5px 18px 0px;}
--------------------编程问答-------------------- CSS是什么,不懂用 --------------------编程问答-------------------- <body style="background-position: center center; background-image:uri('背景图片路经'); background-repeat: no-repeat;">
   </body>
--------------------编程问答--------------------
引用 3 楼 ly302 的回复:
<body style="background-position: center center; background-image:uri('背景图片路经'); background-repeat: no-repeat;">
  </body>

比如说,我图片放在BIN下面,是不是/bin/图片? --------------------编程问答-------------------- 其实很简单,保存  关掉  重新打开

之前我也碰到了这样的问题,就不知道你的能否行的通了.... --------------------编程问答-------------------- 关于第二个问题  应用 3楼的就可解决
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,