css - 如何扩大输入书写区域?
问题描述
输入文本区域在移动时会变小,看起来不太好。我怎样才能扩展这个领域?
.arama input{
border: 1px solid #4d9df2!important;
padding: 18px 227px 19px 21px;
height: 41px;
border-radius: 60px!important;
/* font-size: 18px!important; */
color: #000;
}
解决方案
减少正确的填充。
理想情况下,左右内边距应该相同,但您的输入元素中有一个按钮,所以右内边距应该是按钮的宽度加上左内边距。
以下是您拥有的和应该拥有的之间的区别:
.i1 {
border: 1px solid #4d9df2!important;
padding: 18px 227px 19px 21px;
height: 41px;
border-radius: 60px!important;
color: #000;
}
.i2 {
border: 1px solid #4d9df2!important;
padding: 18px 21px 19px 21px;
width: 356px;
height: 41px;
border-radius: 60px!important;
color: #000;
}
<input class="i1" value="ORIGINAL Text here, Text here, Text here, Text here, Text here, Text here" />
<input class="i2" value="FIXED Text here, Text here, Text here, Text here, Text here, Text here" />
推荐阅读
- python - 如何在 Python 中使用 Webhook?(使用贝宝)
- apache-spark - spark在单线程和单分区下是否具有广泛的依赖性?
- java - 由于 CORS,无法向 springboot 应用程序发出请求
- python - 使用 Python 遍历辅助 Outlook 收件箱中的文件夹
- python - Lib 通过给它匹配分数和非匹配分数来创建 ROC 曲线和 DET 曲线?
- ios - iOS SwiftUI 表单 onTapGesture 阻止子用户界面功能
- javascript - 重新排列 JSON 对象以在 jspdf-autotable 中显示
- elasticsearch - Elasticsearch“搜索查询词”为 _doc 类型索引中的嵌套对象键返回 0 个提示
- algorithm - 在项目中找不到主要方法
- python - 如何强制用户一次又一次地输入值直到输入OK - 算术计算器