我在css中
body {
text-decoration: none;
background-attachment: scroll;
background-image: url(file:///D|/apache-tomcat-5.5.27/webapps/elect/images/1.jpg);
background-repeat: no-repeat;
background-position: center center;
}在jsp页面中导入css,我想在jsp页面中使这张背景图片显示充满页面,该如何写?
请说详细一些,要做毕业设计时用的,很急。谢谢!
body {
text-decoration: none;
background-attachment: scroll;
background-image: url(file:///D|/apache-tomcat-5.5.27/webapps/elect/images/1.jpg);
background-repeat: no-repeat;
background-position: center center;
}在jsp页面中导入css,我想在jsp页面中使这张背景图片显示充满页面,该如何写?
请说详细一些,要做毕业设计时用的,很急。谢谢!
默认是重复显示的,如果只想显示一张再加上:no-repeat属性,如果要在X(y)轴方向重复repeat-x(y),