2010年8月6日
摘要: 兼容问题1.文字本身的大小不兼容。同样是font-size:14px的宋体文字,在不同浏览器下占的空间是不一样的,ie下实际占高16px,下留白3px,ff下实际占高17px,上留白1px,下留白3px。解决方案:给文字设定 line-height 。确保所有文字都有默认的 line-height 值。2.ff下容器高度限定.即容器定义了height之后,容器边框的外形就确定了,不会被内容撑大,而... 阅读全文
posted @ 2010-08-06 11:23 lovening 阅读(2583) 评论(0) 推荐(1) 编辑
摘要: javascript在IE和Firefox中的兼容考虑 1.document.formName.item("itemName")问题说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"];Firefox下,只能使用document.formName.elements["eleme... 阅读全文
posted @ 2010-08-06 11:20 lovening 阅读(1895) 评论(1) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-08-06 11:07 lovening 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 被点击访问过的超链接样式不在具有hover和active了,很多人应该都遇到过这个问题,解决方法是改变CSS属性的排列顺序: L-V-H-A[代码] 阅读全文
posted @ 2010-08-06 11:05 lovening 阅读(2466) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-08-06 11:03 lovening 阅读(165) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-08-06 11:02 lovening 阅读(268) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-08-06 10:59 lovening 阅读(192) 评论(0) 推荐(0) 编辑
摘要: [代码] 阅读全文
posted @ 2010-08-06 10:54 lovening 阅读(131) 评论(0) 推荐(0) 编辑