Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
125 views
in Technique[技术] by (71.8m points)

placeholder的css设置

使用element的日期选择框做了一个组件,现在每次点击后input显示的是默认值,而不是v-model值,但是默认值的样式是浅色的,应该怎么去设置默认值的样式。
代码如下

<el-date-picker style="margin-left:1%;margin-right:2%;alignment: center;border: black;font-size: 14px" v-model="value1"
                     type="date" @change="dateChange" :placeholder="searchDateRange">
                    </el-date-picker>

深度击穿的代码只能在input框或者文本域设置才有用,而用日期框引用的默认值添加就没有效果了

input:-ms-input-placeholder {
            color: green !important;
        }

应该怎么去设置


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你的默认值给了placeholder 。不是有个设置默认值的属性;


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...