【发布时间】:2021-02-11 10:37:14
【问题描述】:
我想增加选择框元素之间的行距。
我尝试line-height 和min-height 但这确实会影响选择框元素的间距。
我可以使用哪个属性?
.input {
padding-bottom:5px;
margin-right:8px !important;
margin:4px;
}
这里有min-height:
select, textarea {
background: #eee;
border: 1px solid #aaa;
border-right-color: #ddd;
border-bottom-color: #ddd;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
width: 100%;
min-height: 30px;
font-weight: normal;
}
这里有line-height:
select, textarea {
display: inline-block;
height: 20px;
padding: 4px 6px;
margin-bottom: 5px;
font-size: 12px;
line-height: 20px;
color: #555555;
vertical-align: middle;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
【问题讨论】: