摘要:
IE的 script 元素支持onreadystatechange事件,不支持onload事件。FF的script 元素不支持onreadystatechange事件,只支持onload事件。如果要在一个this.readyState的值为'loaded'或者'complete'都可以表示这个scr... 阅读全文
摘要:
/* 清理浮动 */ .clearfix:after{ content: " "; display: block; height: 0; visibility: hidden; clear: both; font-size: 0;}.clearfix{ ... 阅读全文
摘要:
$(document).height():整个网页的高度$(window).height():浏览器可视窗口的高度$(window).scrollTop():浏览器可视窗口顶端距离网页顶端的高度(垂直偏移)当网页滚动条拉到最低端时,$(document).height() == $(window).... 阅读全文
摘要:
3d 视图效果,x/y/z轴的说明图1 rotateX( angle )2 rotateY( angle )3 rotateZ( angle )4 rotate旋转的意思,rotateX旋转X轴,rotateY旋转Y轴,rotateZ旋转Z轴rotateX、rotateY、rotateZ、rotat... 阅读全文
摘要:
.container{ position: relative; width: 200px; height: 200px; background: #abcdef; -webkit-border-radius: 20px; -moz-border-radius: 2... 阅读全文
摘要:
1 CSS书写顺序2 位置属性(position, top, right, z-index, display, float等)3 大小(width, height, padding, margin)4 文字系列(font, line-height, letter-spacing, color- te... 阅读全文
摘要:
background:url(logo2.png) no-repeat; _background-image:none; _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’logo2.png’); 注意:滤镜的图片路径是以... 阅读全文
摘要:
1 2 3 media对各种设备的判断,分离css文件,易于维护1 viewport设置2 阅读全文
摘要:
1 1 1 2 2 3 3 4 4 5 5 中加入wmode="transparent"属性,Firefox中层的问题就迎刃而解。--> 阅读全文