Chinaunix首页 | 论坛 | 博客
  • 博客访问: 305168
  • 博文数量: 111
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 707
  • 用 户 组: 普通用户
  • 注册时间: 2013-02-26 11:00
个人简介

小伙向前冲呀,小伙向前冲呀。

文章分类

全部博文(111)

文章存档

2014年(43)

2013年(68)

我的朋友

分类: JavaScript

2014-04-17 21:18:43

分享一个css实现二个显示的代码。

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
  2. <style>
  3. div {
  4. position:absolute;
  5. top:50%;
  6. left:50%;
  7. margin:-100px 0 0 -120px;
  8. }
  9. </style>
  10. <div style="background:#404040;width:120px;height:200px;">,专业的网站技术站点。</div>
  11. <div style="background:#FD7C03;width:120px;height:200px;margin:-100px 0 0 0px;"></div>



阅读(891) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~