移动端项目注意事项

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

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

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

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

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

英文换行,中文换行

translateY  top 设置左侧栏的下拉

猜你喜欢

转载自blog.csdn.net/weixin_42663701/article/details/81357916