- 博客(3)
- 收藏
- 关注
原创 jq获取transform值
$('div').css("transform").replace(/[^0-9\-,]/g,'').split(',')[5];得到: -78$('div').css("transform");得到:matrix(1, 0, 0, 1, 0, -78);用正则获取一下它里面的数值:$('div').css("transform").replace(/[^0-9\-,]/g,'')=得到:1, 0...
2018-04-24 11:35:49 2980
原创 jq div 滚动到指定位置,jq不支持animate实现css3的transform动画效果
//第一个花括号里面是动画内容,可以为空,但不能省去中括号$("#div").animate({},function(){ $("#div").css({ 'transform':'translate3d(0px, -200px, 0px) translateZ(0px)', //向下滑动-200px...
2018-04-24 10:25:29 807
转载 ios对于fixed属性不兼容的解决方案
现给出的解决的方案的,就在我们没有focus的时候的,这个div的属性不发生改变的,当我们focus的让这个div的fixed变成的absoluted(需在body修改),blur的时候的又变成大fixed的//html<footer class='footer' id='footerFixed'> <input @focus='addBodyClass' @blur=...
2018-03-21 16:46:51 3897
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人