摘要:
.使用默认otpion再disable此选项 <select> <option value="" disabled selected>Select your option</option> <option value="hurr">Durr</option </select> 效果如下: 转自:ht 阅读全文
摘要:
1. line-height 适用场景:单行文字,下拉框,按钮等 原理:将单行文字设置行高以后,文字会位于行高的中间位置。也就是需要将元素的 line-height 设置成和高度一样。 示例如下 <style> .content{ width: 400px; background: #ccc; li 阅读全文