
Html
找轮子的小男孩
这个作者很懒,什么都没留下…
展开
-
canvas windows 平板模式获取鼠标位置
//判断是否是平板 function IsTouchEnabled() { return ( 'ontouchstart' in window ) || ( navigator.maxTouchPoints > 0 ) || ( navigator.msMaxTouchPoints > 0 ) }@touchstart@touchmoveconst isPad = IsTouchEnabled()const rect = .原创 2022-04-19 17:32:34 · 214 阅读 · 0 评论 -
2022.2.10 z-inde与opacity
z-index:可以设置元素的叠加顺序,但依赖定位属性。z-index大的元素会覆盖z-index小的元素z-index为auto的元素不参与层级比较z-index为负值,元素被普通流中的元素覆盖z-index支持负值;z-index支持CSS3 animation动画;z-index:auto;默认值,如果不对z-index设置,默认为auto;z-index:;整数值,z-index:1,z-index:2等z-index:inherit;继承7阶层叠水平(stacking le转载 2022-02-10 09:19:45 · 246 阅读 · 0 评论