Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果它们开始(调整大小)或溢出它们的父级,是否有 css、jQuery、javascript 技巧来隐藏内联块元素?例如,在溢出元素上设置显示无的选择器?
只需将 css 溢出属性设置为
overflow:hidden;
检查css 的溢出属性
按照 Mozilla 的描述检查溢出
如果容器溢出属性设置为隐藏,那么即使内容溢出,它也会保持隐藏