CSS使网页背景图片居中的三种方法

[ 2008-08-06 23:21:17 | Author: colacat ]
Font Size: Large | Medium | Small
1、第一种:用像素设定,很多都用这种,但是也是最麻烦的:
Runable Code:

  [Ctrl+A to select all.  Prompt:You can edit these codes before run.]
2、第二种:用50%设定,很方便:
Runable Code:

  [Ctrl+A to select all.  Prompt:You can edit these codes before run.]

3、第三种:用center设定(注:第2个center可以省略,因为默认就是center),不错吧,呵呵:
Runable Code:

  [Ctrl+A to select all.  Prompt:You can edit these codes before run.]
Comments Feed Comments Feed: http://www.colacat.cn/feed.asp?q=comment&id=87

View Mode: Show All | Comments: 3 | Trackbacks: 0 | Toggle Order | Views: 1845
Quote lau*
[ 2008-08-13 17:55:34 ]
兄弟,你好,我的BLOG换了域名,正在DMOZ上更新收录信息,麻烦你帮我改一下域名,原punker.info改为rocklau.com,谢谢了
Quote colacat
[ 2008-08-14 17:17:57 ]
Quotes From lau
兄弟,你好,我的BLOG换了域名,正在DMOZ上更新收录信息,麻烦你帮我改一下域名,原punker.info改为rocklau.com,谢谢了
改好了。
Quote dsadsads
[ 2008-08-23 02:52:02 ]
看了你的日志,不错很好,受益匪浅,绝对的好。

Post Comment
Smilies
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password:   Register Now?
Security Code * Please Enter the Security Code