开发者

Mask image thats too large for div css

开发者 https://www.devze.com 2023-03-19 16:41 出处:网络
I have a starburst image that needs to stay huge. I have it in a div box. The div box has constrained height and width. Yet the image still goes outside the div. How can I开发者_Python百科 get it to c

I have a starburst image that needs to stay huge. I have it in a div box. The div box has constrained height and width. Yet the image still goes outside the div. How can I开发者_Python百科 get it to cut off where ever?

You can see full example of what I'm trying to do here

http://jsfiddle.net/Cax9b/


overflow:hidden;

http://jsfiddle.net/Cax9b/1/


Set your div style to overflow: hidden.

0

精彩评论

暂无评论...
验证码 换一张
取 消