我的输入在顶部重叠了 1 或 2 个像素的文本。 将 SCSS 与 React.JS 结合使用
.find-input {
color: white;
width: 100%;
box-sizing: border-box;
background-color: #262B36;
padding: 13px 20px;
font-size: 16px;
font-weight: 400;
outline: none;
border: none;
border-radius: 4px;
}
.find-input:focus {
outline: 1px solid blue;
}
<div class="main"> <input class="find-input" /> </div>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
尝试增加高度或减少顶部/底部内边距。
查看您的 HTML 会有帮助...