兼容不同浏览器的 CSS Hack 写法

Written by aijun June 22nd, 2011 12:23 PM No Comments Filed under: 资源分享

1、* 符号
IE 浏览器能识别 * 符号,但其他浏览器诸如 Firefox、Opera、Chrome 等不能识别 * 符号。
例:在 Firefox 和 IE 中呈现不同的文字颜色:

color:red;*color:blue;
//在 Firefox 等非 IE 核心浏览器中,文字呈现红色;而 IE 中呈现蓝色。

Read the rest of this entry »

TAGS: css

一些CSS制作的小知识

Written by aijun October 18th, 2008 10:33 AM 6 Comments Filed under: 资源分享

1、CSS 的十六进制颜色代码缩写。习惯了缩写及小写,这才知道,原来不是推荐的写法,为的是减少解析所占用的资源。但同时会增加文件体积。孰优孰劣,有待仔细考证。

2、无边框。推荐的写法是 border:none;,哈哈,我一直在用这个。 border:0; 只是定义边框宽度为零,但边框样式、颜色还是会被浏览器解析,占用资源。

Read the rest of this entry »

TAGS: css

用css方式巧妙保护邮箱地址

Written by aijun November 3rd, 2006 9:45 PM No Comments Filed under: 资源分享

XML/HTML代码
  1. <style type="text/css"> .reMail {unicode-bidi:bidi-override; direction: rtl; color:#f00;} </style>    
  2. <p>我的邮箱 <span class="reMail">moc.361@ztaix</span></p>  

 原文:http://bbs.chinahtml.com/t61333

 

TAGS: css

CSS 实现的下拉菜单(美化版)

Written by aijun July 28th, 2006 9:23 AM No Comments Filed under: 资源分享

CSS 实现的下拉菜单(美化版),以后可能会用到。

/codedemo/daohang

TAGS: css, 菜单