365游戏网站修复中!
几年前的网站重新挂出来,但是背景图片已经错版了,因为当初都是普屏的显示器,那个代码对宽屏的话会不居中,而且错版!看着碍眼,修改来修改去,怎么都不对,哈哈!原来两处添加了背景图片了!
测试网站:http://www.365youxi.com/ 把foot也使用统一的了!不过代码乱啊!管他呢!只要能打开!
网页背景没有拉伸功能,css中背景图片的设置:
不平铺:background-repeat: no-repeat;
横向平铺:background-repeat: repeat-x;
纵向平铺:background-repeat: repeat-y;
固定:background-attachment: fixed;
滚动:background-attachment: scroll;
水平居中:background-position: center;
水平居中并垂直居中:background-position: center center;
我现在使用的!
<STYLE TYPE="text/css">
<!--
BODY {background-image: URL(/images/indexbg.gif);
background-position: center;
background-repeat: repeat-y;}
-->
</STYLE>
365游戏网站修复中!:等您坐沙发呢!