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

前端 未结 6 1863
感动是毒
感动是毒 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 08:55

    If the footer has fixed height and you know it and can hard-code it in CSS, you can do it like this:

    
    
        
            
        
        
            
    everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here everything from the page goes here

提交回复
热议问题