在你所加背景图片的table或div里加入如下代码:
style="background-position:center; background-repeat:no-repeat;"
例如:
<table width="200" height="200" style="background-position:center; background-repeat:no-repeat;" background="a.jpg">
-
补充:
-
是一样的
把
style="background-position:center; background-repeat:no-repeat;"
加在<body>里面就可以了
例如:
<body style="background-position:center; background-repeat:no-repeat;">