随笔分类 -  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/xhtml"> <head> <meta. http-equiv="Content-Type" content="text/html; charset 阅读全文
posted @ 2012-04-20 23:38 sidihu 阅读(325) 评论(0) 推荐(0)
摘要:UI->li自动换行参数:white-space:nowrap;css代码:ul{ margin:0px; padding:0px; list_style:none;}li{ height:28px; line-height:28px; white-space:nowrap; display:block; float:left;}---------------------------------------------------.Common_Company ul{width:310px;height:40px;float:left; text-align:left; display: 阅读全文
posted @ 2012-04-20 23:38 sidihu 阅读(6557) 评论(0) 推荐(0)
摘要:‍1、display:inline-block; 这个属性IE8和firefox3.0已经支持,IE6和IE7不支持,解决方法是*display:inline; zoom:1;原因如下: 使得display:inline;使得IE下元素变成内联元素,然后使用zoom:1;触发块元素的layout(我理解为可布局——对高度宽度敏感),这里有篇文章对layout有不错的解释:http://www.brunildo.org/test/InlineBlockLayout.html 。可以看看,英文原文。有时间我也会讲讲自己对layout这个概念的理解的。2、class为“c”和“d”中的样式中用lin 阅读全文
posted @ 2012-04-20 23:37 sidihu 阅读(1497) 评论(0) 推荐(0)
摘要:#Container{width:950px;height:auto; margin:0 auto;background-color:#FFF;max-height:none; min-height:none;}min-height 和max-height 是ie 7 8 ff chrome支持的 ie6div高度自适应 用不着‍max-height 属性设置元素的最大高度。该属性值会对元素的高度设置一个最高限制。因此,元素可以比指定值矮,但不能比其高。不允许指定负值。‍none默认。定义对元素被允许的最大高度没有限制。length定义元素的最大高度值。%定义基于包含它的块级对象的百分比最大高 阅读全文
posted @ 2012-04-20 23:36 sidihu 阅读(301) 评论(0) 推荐(0)
摘要:以前一直模模糊糊不知道怎么搞 今天测试了一下........页面:<div class="can2"> <ul> <li><a href="index.html"><span>Home</span></a></li> <li><a href="about-us.html"><span>About Us</span></a></li> <li><a hr 阅读全文
posted @ 2012-04-20 23:35 sidihu 阅读(720) 评论(0) 推荐(0)