摘要: 今天看到一个设计图,客户需求是,里面文字是可变的……如图 查了半天度娘,墙都翻了,没找到类似案例;算了,自己搞 利用属性: -webkit-background-clip:text; -webkit-text-fill-color:transparent; 再根据背景偏移来搞一下,结果,真成了;不知 阅读全文
posted @ 2021-04-06 17:24 苏尘尘 阅读(539) 评论(0) 推荐(0) 编辑
摘要: $("#ipt").bind('input propertychange',function(){ var value=$(this).val().replace(/\s/g,'').replace(/(\d{4})(?=\d)/g,"$1 "); $(this).val(value) }) 阅读全文
posted @ 2018-10-31 11:09 苏尘尘 阅读(200) 评论(0) 推荐(0) 编辑
摘要: html: css: js: 阅读全文
posted @ 2018-09-05 16:37 苏尘尘 阅读(6233) 评论(0) 推荐(0) 编辑
摘要: viewbox:可以根据父级大小缩放svg绘制出来的大小 但是用viewbox改变了父级div的大小 能缩哟 阅读全文
posted @ 2018-01-04 20:30 苏尘尘 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 1、index.html 2、main.html 阅读全文
posted @ 2017-11-27 09:52 苏尘尘 阅读(3212) 评论(0) 推荐(0) 编辑
摘要: 问题: 代码: <body> <iframe src="main.html" id="indexMain"></iframe> </body><script> //此处是给全屏设置 var oW = document.documentElement.clientWidth || document.b 阅读全文
posted @ 2017-10-30 14:51 苏尘尘 阅读(361) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-09-26 12:07 苏尘尘 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 未抗锯齿效果图: 加入抗锯齿代码效果: // 倍数代码示例 //demo代码 //以上基于移动端移动端移动端上锯齿效果,PC端有待自行测试~ 阅读全文
posted @ 2017-09-18 18:56 苏尘尘 阅读(662) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-08-16 11:38 苏尘尘 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 以jquery为后盾,以rem为单位,屏幕/32为参照~ 阅读全文
posted @ 2017-06-12 17:50 苏尘尘 阅读(198) 评论(0) 推荐(0) 编辑