[英]Contents of DIV go outside DIV when DIV changes Size
I have a DIV that changes its size when a link is clicked. 单击链接后,DIV会更改其大小。 When the link is clicked, the div animate()s to width: 0px, but the contents of that div is still visible on the outside of the div! 单击该链接时,div的animate()宽度为0px,但是该div的内容仍在div的外部可见! How can I make the contents of the div not go outside the div, without explicitly setting its visibility to hidden? 如何在不将div的可见性显式设置为hidden的情况下使div的内容不超出div的范围? Maybe some kind of anti-overflow thing? 也许某种反溢出的东西?
Thank you 谢谢
添加到DIV的CSS中:
overflow: hidden;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.