扫码关注官方订阅号
我希望select中字符长度能短点,不要挡到右边的图标。 字段是从数据库取的,所以长度不能缩减。 请各位提提解决方案,谢谢!
ringa_lee
内容的宽度设为80%-90%(已不挡住为准),
text-overflow: ellipsis; overflow-x: hidden; white-space: nowrap;
给select加一个padding-right试试,以前遇到过这个问题
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
内容的宽度设为80%-90%(已不挡住为准),
text-overflow: ellipsis;
overflow-x: hidden;
white-space: nowrap;
给select加一个padding-right试试,以前遇到过这个问题