日期選擇器,type= “date”,H5 for=id,點擊後和輸入框效果相同,
<label for="time">選擇時間</label><input type="date" name="time" style="" id="time">
給元素設置屬性值
$('.emao').attr('style','margin-left:100px');$('.emao')[0].classList.add('dem');$('.emao').classList.toggle('dem');
$('.emao').prop("style", "color:green");$('.emao').removeProp("style", "color:green");
input控件box-sizing: border-box;去掉ios的多餘邊框
input placeholder向上飄的治理方法input::-webkit-input-placeholder{
padding-top: 2px;
line-height: .28rem ;
}
ios文字對不齊padding-top: (X-y)/2;height:字體高度;font-size:x;+上邊的placeholder