- 4/5
- 1
- 2
- 3
- 4
- 5
织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!
CSS让一个背景图片上下左右都居中的好方法,绝对实用经典的小技巧,而且也非常简单,但好些同志竟然还摸不着头绪,所以今天就重新写一下,用最简单的代码实现全兼容的CSS背景居中,你难道不相信么?
<html> <head> <title>背景居中</title> <style type="text/css"> body { color:white; background: #0066cc url('http://mb5u.com/jscss/demoimg/logo_demo1.gif') no-repeat fixed center; } </style> </head> <body> 模板无忧(mb5u.com)提供编程源码、JavaScript/CSS特效代码以及常用软件下载等,做有质量的学习型源码下载站。 </body> </html>