前端杂记_持续更新

版权声明:本文为博主原创文章,未经博主允许不得转载。讨论交流群:59116211 https://blog.csdn.net/hao474798383/article/details/70258346

1.input标签,type="date" 时,手机点击将自动调起手机日期控件


2oninput事件:oninput 事件可以兼容移动端的复制事件,所以这个事件可以替换绝大部分的值更改事件,比如 : keyup keydown change

ios的原生输入法并不兼容oninput方法,所以在做兼容性的时候,最好不要用在IOS平台上,我的解决办法为:onkeyup+change来触发值更改事件


3.justify-content:center;align-items:center; 这两个属性可确保元素在中间显示

<div id="popup-captcha-mobile-div" style="display:none;width:100%;height:100%;position:fixed;background: rgba(0,0,0,0.5);top:0;z-index:1000;" onclick="hideDiv()">
<div style="display:flex;justify-content:center;align-items:center;height:50%;">
<div id="popup-captcha-mobile" onclick="event.stopPropagation();"></div>
</div>
</div>

猜你喜欢

转载自blog.csdn.net/hao474798383/article/details/70258346