gpt4 book ai didi

css - 宽度为 100% 的额外一个像素

转载 作者:行者123 更新时间:2023-12-05 08:02:05 26 4
gpt4 key购买 nike

我有一个 680 像素宽的文本区域。这需要变得流畅,所以我使用百分比。

百分比构成了完美的 100% 宽度,但它似乎比应有的多渲染了 1 个像素。

http://jsfiddle.net/XXshn/2/

最佳答案

这有什么问题:

textarea {
border: 1px solid #333333;
background: #ececec;
margin: 0;
outline: 0;
height: 100px;
padding: 20px; /* */
width: 640px; /* 680px - 2 * 20 */
resize: none; }

关于css - 宽度为 100% 的额外一个像素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9975124/

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