gpt4 book ai didi

html - 从 html 按钮溢出的文本似乎与应用的样式形成对比

转载 作者:可可西里 更新时间:2023-11-01 14:48:02 25 4
gpt4 key购买 nike

我只是想不通为什么这个按钮中的文本没有换行到下一行。相反,它在最后被切断了。这是样式:

#find-attach-all-content-container input[type="button"] {
width: 60px;
height: 60px;
background-color: #fd902a;
color: #fff;
padding: 5px;
position: absolute;
left: -10px;
top: -20px;
font-size: 14px;
line-height: 15px;
overflow: visible;
text-align: center;
border: solid #b6b6b6 1px;
}

这是 html:

<input type="button" class="attach-btn" value="Attach to Response" onclick="postConditionFindCure( <?php echo get_the_ID() ?> );">

最佳答案

你应该添加:

white-space: normal;

white-space 的默认值设置为不换行输入元素。

关于html - 从 html 按钮溢出的文本似乎与应用的样式形成对比,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25787853/

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