- 博客(4)
- 收藏
- 关注
原创 getComputedStyle
通过getComputedStyle 可以获取 style 中的样式 例如 var obj =document.getElementByid('id'); getComputedStyle(obj,"style").backgroundImage;
2017-07-24 14:43:27
229
原创 边框在手机上用1rem 不会显示的解决问题
.img::after { -webkit-transform: scale(0.3, 0.3); transform: scaleY(0.5, 0.5); -webkit-transform-origin: 100% 0; transform-origin: 8
2017-06-26 17:14:22
1815
原创 window.onscroll 的优化写法
function addEventOnScroll(func) { var oldOnscroll = window.onscroll; if (typeof window.onscroll !== 'function') {//如果window.onscroll 上没有方法就直接把该方法赋给window.onscroll window
2017-06-16 10:02:08
1014
原创 anglar 跳转子页面
// 主页面的js部分的需要加入下面的指令 uzai.directive('script', ($compile) => ({ restrict: 'E', scope: false, link(scope, elem, attr) { if (attr.type === 'text/javascript-l
2017-05-26 11:37:31
524
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人