摘要: CSS里的行高即line-height ,有三种写法。 1.百分比 如 : line-height: 150% 2.纯数字 如 : line-height: 1.5 3.数字+单位 如: line-height:24px; 第三种比较好理解,这里不说了。 1和2都是按百分比来计算行高,两者有什么不同呢? 以下举例子来说明:<style> #exp1{font-size:12px;line-height:150%;} #exp2{font-size:12px;line-height:1.5;} h1,p{font-size:30px;}</style><div id 阅读全文
posted @ 2011-03-24 14:40 一只IT迷途小羔羊 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 先说说浮动的情况, 在一个块容器里中的内容如果有浮动,那容器就会取不到里面内容的高度,而发生错位。这个时侯就需要清理浮动。 <style> .box{border:1px solid red;} .next {border:1px solid green;} .fl{float:left;} .fr{float:right;} </style> <div class="box"> <div class="fl">left</div> <div class="fr"> 阅读全文
posted @ 2011-03-21 17:37 一只IT迷途小羔羊 阅读(320) 评论(1) 推荐(0) 编辑
摘要: 朋友的服务器是redhat as 4, apache2,php4,mysql4, 想升级成php5,mysql5在redhat上安装东西,没有光盘,找源码包来安装是一件痛苦的事情,现在好了,我们用yum, 实行无痛升级。一、先安装yum(参考的这篇文章: http://blog.csdn.net/symgdwyh/archive/2010/07/28/5771134.aspx)1、首先安装yum和相关的rpm包。 wget http://www.haoxm.net/tools/yum_forAS4.tar.gz2、解压缩并安装。[root@DEV-191 aio]# tar zxvf yum_ 阅读全文
posted @ 2011-03-18 10:20 一只IT迷途小羔羊 阅读(485) 评论(0) 推荐(0) 编辑