
div+css
lcxmjk
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
div层在html页面中垂直居中
[code] body {padding: 0; margin: 0;} body,html{height: 100%;} #outer {height: 100%; overflow: hidden; position: relative;width: 100%; background:#333;} #outer[id] {display: table; position: static...2007-12-12 19:14:43 · 274 阅读 · 0 评论 -
div+css层在html页面中垂直居中(2)
前段时间有写过这个话题,今天在来补充一下,以下是支持IE6,IE7和Firefox垂直居中代码。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://...2008-02-29 15:19:08 · 162 阅读 · 0 评论 -
解决英文长串字符在网页中不换行
把如下代码加入区域中: <div style="width:20px;table-layout: fixed;"> <div style="word-wrap:break-word;">aaaaaaaaaaaaaaaaa</div> </div>2008-02-29 15:27:36 · 130 阅读 · 0 评论 -
div+css更换导航背景
之前看到过好多人问关于更换导航背景这个问题,今天在这里现出代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/x...2008-03-03 13:01:16 · 385 阅读 · 0 评论 -
清楚浮动
<div style="clear:both;"></div> 如果在IE和FF下显示不一样时,把上面代码替换成下面代码: <div style="clear:both; overflow:hidden;"></div>2008-03-11 16:19:01 · 267 阅读 · 0 评论