Good “background-size: cover” fallbacks/shims/tricks for cross-browser compatibility on DIVs?

前端 未结 4 1595
名媛妹妹
名媛妹妹 2020-12-06 07:21

So I\'m using background-size:cover to achieve the desired effect of a background image that scales to any size of the div it\'s applied to while maintaining th

4条回答
  •  爱一瞬间的悲伤
    2020-12-06 08:01

    I've tried the answer before and it did not work as background-size: cover; is expected, it did in fact fit the image into the size chosen , but it did not clip the excess to the new measures which is what i expected from "cover" option. My solution was found here : http://selectivizr.com/

    
    
    
      
    
    
        
    
    
    Donald Duck!

提交回复
热议问题