gpt4 book ai didi

css - 当出现 overflow-x 时,用于显示 ... 的 css 属性是什么?

转载 作者:太空宇宙 更新时间:2023-11-03 21:15:12 27 4
gpt4 key购买 nike

overflow-x 属性在内容超出父元素的宽度时显示滚动条。我不想显示滚动条,而是显示三个点“...”如何实现?

最佳答案

overflow: hidden;
text-overflow: ellipsis;

这应该可以解决问题。

关于css - 当出现 overflow-x 时,用于显示 ... 的 css 属性是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43087084/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com