Skip to content

Instantly share code, notes, and snippets.

Avatar

Wei Gao villadora

View GitHub Profile
View jidan-30.md

柯达 98协议 收购当时国内7家企业中的6家 形成垄断,但如今却破产

@villadora
villadora / anonymouse-function-scope.md
Created Jul 27, 2012
anonymouse function in javascript
View anonymouse-function-scope.md
@villadora
villadora / propertyIsEnumerable.md
Created Jul 13, 2012
propertyIsEnumerable & hasOwnProperty
View propertyIsEnumerable.md
@villadora
villadora / browser-width.md
Created Jul 12, 2012
window.width和document.width
View browser-width.md

网页和浏览器的尺寸

__jquery__中拿到浏览器的尺寸:

$(window).width()
$(window).height()

__jquery__中拿到网页的尺寸:

$(document).width()
@villadora
villadora / ie-css-cheat.md
Created Jul 12, 2012
Stylesheet cheat for IE
View ie-css-cheat.md

For All IE

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]-->

Target everything EXCEPT IE

<!--[if !IE]><!-->
<link rel="stylesheet" type="text/css" href="not-ie.css" />
View css-position.md

CSS 'position'属性详细

Sample

position properties

position:static

_static_是默认的position属性, 也就是element会按照默认的方式出现在文档之中,通常使用"static"只是为了清除之前设置过的position属性