摘要: .renzheng li {text-align:center;width: 90px; height:41px; background:url(images/renzheng_bg.gif) center top no-repeat; padding:5px 0; margin:5px 0; float:left; overflow:hidden;}.renzheng li a{ /*非IE的主流浏览器识别的垂直居中的方法*/ display: table-cell; vertical-align:middle; /*设置水平居中*/ text-align:center; /* 针对IE的H 阅读全文
posted @ 2011-07-04 09:38 ice_nemo 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #divBimgTop {text-align:center;}#divBimgTop img {vertical-align:middle;max-width:360px;max-height:270px;width: expression(this.width > 360 && this.width / 360>= this.height / 270 ? 360 : true);height: expression(this.height > 270 && this.width / 360 < this.height / 270 ? 阅读全文
posted @ 2011-07-04 09:37 ice_nemo 阅读(136) 评论(0) 推荐(0) 编辑
摘要: IE:filter:alpha(opacity=sqlN)其中 sqlN的值域为[0, 100]Firefox:-moz-opacity:sqlN其中sqlN的值域为[0, 1]Chrome和Safari:opacity:sqlN其中sqlN的值域为[0, 1] 阅读全文
posted @ 2011-07-04 09:35 ice_nemo 阅读(178) 评论(0) 推荐(0) 编辑
摘要: HTML页面标签编码都是utf-8当IE右键不勾选自动选择编码的时候,IE是从解析页面标签优先再http header信息,而其他浏览器刚好相反。由于这个原因,title里如果包含了中文字符,就会导致编码自动选择成gb2312导致页面乱码或者空白。因此一定要把<META http-equiv=Content-Type content="text/html; charset=utf-8">代码放在title标签之前。 阅读全文
posted @ 2011-07-04 09:34 ice_nemo 阅读(9073) 评论(0) 推荐(0) 编辑