最新款结婚十字绣枕头:10分。如何制作出平铺居中的网页背景图

来源:百度文库 编辑:高校问答 时间:2024/04/30 13:06:33
这样的代码是居中的,我想让它平铺,谢谢回复!
<STYLE TYPE="text/css">
<!--
BODY {background-image: URL(tu.gif);
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;}
-->
</STYLE>

网上这样的例子很多。你可以去看看。居中或者是平铺。你可以用表格来给他固定上你喜欢怎么样就怎么样
如果你就想用上面的方法。那么你就自己修改了
background-position: center; 这个是居中你可以修改他
background-repeat: no-repeat;
background-attachment: fixed;