How do I get a floating footer to stick to the bottom of the viewport in IE 6?

前端 未结 6 1870
感动是毒
感动是毒 2020-12-03 08:14

I know this would be easy with position:fixed, but unfortanately I\'m stuck with supporting IE 6. How can I do this? I would rather use CSS to be clean, but if I have to u

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 09:04

    If you put the height to 100% and overflow: auto to the and tags, anything with the absolute position will become fixed. It the most basic for is pretty funky with oddly placed scroll bars but can be tweak to decent results. example

    
    
        
            
        
        
            
    overflow....
    overflow....
    overflow....
    overflow....
    overflow....
    overflow....
    overflow....
    overflow....
    overflow....

提交回复
热议问题