谁懂VB语言??求助

来源:百度知道 编辑:UC知道 时间:2024/05/16 18:12:59
Response.Write "<style type=""text/css"">" & vbcrlf
Response.Write "<!--" & vbcrlf
Response.Write "body{font-size:12px;background:#737573 url(skin/" & picdir & "/background/pageBg.gif);margin:0;text-align:center;cursor:url(skin/" & picdir & "/pic/StarCraftArrow.ani),default;}" & vbcrlf
Response.Write "table{width:97%;}" & vbcrlf
Response.Write "table table{width:100%}" & vbcrlf

这是一段网页背景的代码 有懂 帮我把背景改成固定的 谢谢
HTML固定背景的语言如下:

<style>
body {background-position: center;//背景居中
background-repeat: no-repeat;//无重复
background-attachment: fixed;//固定不动}
</style>

Response.Write "body{font-size:12px;background:#737573 url(skin/" & picdir & "/background/pageBg.gif);margin:0;text-align:center;cursor:url(skin/" & picdir & "/pic/StarCraftArrow.ani),default;}" & vbcrlf

在这句后面继续加,如:

Response.Write "body{font-size:12px;background:#737573 url(skin/" & picdir & "/background/pageBg.gif);margin:0;text-align:center;cursor:url(skin/" & picdir & "/pic/StarCraftArrow.ani),default;background-position: center;background-repeat: no-repeat;background-attachment: fixed;}" & vbcrlf

呵呵,我建议做网页最好不要这么做网页的样式,把网页内容用CSS样式表做出来.什么事情都解决了..