{"action":"opened","issue":{"url":"https://api.github.com/repos/9958/rinblog/issues/101","repository_url":"https://api.github.com/repos/9958/rinblog","labels_url":"https://api.github.com/repos/9958/rinblog/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/9958/rinblog/issues/101/comments","events_url":"https://api.github.com/repos/9958/rinblog/issues/101/events","html_url":"https://github.com/9958/rinblog/issues/101","id":137566867,"number":101,"title":"css 兼容ie6,ie7,ff的fixed,元素上下端固定定位方法","user":{"login":"9958","id":6994942,"avatar_url":"https://avatars.githubusercontent.com/u/6994942?v=3","gravatar_id":"","url":"https://api.github.com/users/9958","html_url":"https://github.com/9958","followers_url":"https://api.github.com/users/9958/followers","following_url":"https://api.github.com/users/9958/following{/other_user}","gists_url":"https://api.github.com/users/9958/gists{/gist_id}","starred_url":"https://api.github.com/users/9958/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9958/subscriptions","organizations_url":"https://api.github.com/users/9958/orgs","repos_url":"https://api.github.com/users/9958/repos","events_url":"https://api.github.com/users/9958/events{/privacy}","received_events_url":"https://api.github.com/users/9958/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-01T12:53:37Z","updated_at":"2016-03-01T12:53:37Z","closed_at":null,"body":"    <style type=\"text/css\"> \r\n    body{ \r\n    background-image:url(about:blank); background-attachment:fixed;/*必要，防抖动*/ \r\n    } \r\n    .head,.foot{ \r\n    position:fixed;\r\n    *position:absolute; \r\n    *left:0;\r\n    z-index:21; \r\n    background:#999; \r\n    height:30px; \r\n    width:500px; \r\n    } \r\n    .foot{ \r\n    *bottom:0;\r\n    } \r\n    .main{ \r\n    height:2000px; \r\n    } \r\n    </style> \r\n    <!--[if lt IE 8]> \r\n    <style type=\"text/css\"> \r\n    /*ie6和ie7 fix顶端元素*/ \r\n    .head{ \r\n    top:expression(eval(document.documentElement.scrollTop)); \r\n    } \r\n    /*ie6和ie7 fix底端元素*/ \r\n    .foot{ \r\n    top: expression(eval((document.compatMode&&document.compatMode==\"CSS1Compat\")?documentElement.scrollTop+documentElement.clientHeight-this.clientHeight-1:document.body.scrollTop+document.body.clientHeight-this.clientHeight-1)); \r\n    } \r\n    </style> \r\n    <![endif]--> \r\n\r\n\r\n转载自：http://www.9958.pw/post/css_position_fixed"}}