移动端项目注意事项

xiaoxiao2021-03-01  62

click:点透还有300s的延迟 所以使用 ontouchstart    ontouchmove   ontouchend

点击怎么做:使用touch来模拟点击  ontouchstart  :开始的时候记住点的x y的坐标

如果离开的xy坐标 和开始的xy坐标相差很大  代表滑动

只要元素浮动了,就给父元素清除浮动

图片底部会有大概3像素的间隙,所以vertical-align:top 

英文换行,中文换行

translateY  top 设置左侧栏的下拉

转载请注明原文地址: https://www.6miu.com/read-3200266.html

最新回复(0)