摘要: 此为动态插入iframe 遮挡下拉菜单和swf/flash的objectiframes=document.createElement("iframe");iframes.setAttribute("id","bgIframes");iframes.setAttribute("frameborder","0");if($("#bgIframes").length>0){$("#bgIframes").eq(0).remove()}$(iframes). 阅读全文
posted @ 2011-09-04 23:40 John.chang 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: display:inline-block IE 6/7 不支持可以用inline代替1.而inline-block在IE 6/7 以外浏览器 在使用之后 会出现 文字空隙 此空隙可以用font-size:0解决,此时webkit核心的chrome可能中间可能还有空,这时letter-spacing:负数,来解决。2.行内元素不对齐的问题,可以给行内的子元素 加 vertical-align 来解决比如vertical-aglin:top middle等* 但必须注意 在其子集中有文字的地方 写文字 字号 否则会导致 文字不见了后续 ie6 下inline 标签 在某些情况下有BUG(还在研究) 阅读全文
posted @ 2011-09-04 23:38 John.chang 阅读(203) 评论(0) 推荐(0) 编辑
摘要: webkit核心 只支持 document.body.scrollTop (遨游3 chrome SAFAIR等国内双核浏览器)trident核心 document.documentElement.scrollTopGecko核心 document.documentElement.scrollTopPresto核心 document.documentElement.scrollTopweb 技术交流群-6306526 阅读全文
posted @ 2011-09-04 23:36 John.chang 阅读(370) 评论(0) 推荐(0) 编辑