10 2012 档案

摘要:1、黄色高亮外边框的取消input {outline: none;}textarea {outline: none;}如上代码,使用CSS的outline就可以取消掉;2、文本域缩放功能的取消也是使用CSS,具体有两种方法textarea {width: 400px;max-width: 400px;height: 400px;max-height: 400px;}上面是限定最大宽度和高度(CSS2),这也是最容易想到的方法了texearea {resize: none;}需要注意,这个方法中的resize是CSS3中的语法 阅读全文
posted @ 2012-10-25 14:16 .joe 阅读(297) 评论(0) 推荐(0)
摘要:CSS2.1 中规定了关于 CSS 规则 Specificity(特异性)的计算方式,用一个四位的数字串(注:CSS2 中是用三位)来表示,最后以 Specificity 的高低判断 CSS 的优先权。Specificity 具体的计算规则:元素的 style 样式属性,加 1,0,0,0。每个 ID 选择符(#id),加 0,1,0,0。每个 class 选择符(.class)、每个属性选择符(例 [attr=”"] )、每个伪类(例 :hover),加 0,0,1,0。每个元素或伪元素(例 :firstchild)等,加 0,0,0,1。其他选择符(例 全局选择符 *,子选择符 阅读全文
posted @ 2012-10-25 08:55 .joe 阅读(881) 评论(0) 推荐(0)
摘要:在IE6中,因为只支持css1,而hover伪类(css伪类)在css1中只支持<a>标签使用,其他标签一概不接纳,今天我们就来破除这个可恶的规矩!第一步打开记事本,复制如下代码:<attach event="ondocumentready" handler="parseStylesheets" /><script>/*** Whatever:hover - V1.42.060206 - hover & active* ---------------------------------------------- 阅读全文
posted @ 2012-10-24 17:52 .joe 阅读(326) 评论(0) 推荐(0)
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=utf-8&q 阅读全文
posted @ 2012-10-19 19:08 .joe 阅读(404) 评论(0) 推荐(0)