2021年8月19日

前端生成图形验证码

摘要: 代码: // 生成随机字符图片 function draw(show_num) { var canvas_width = document.getElementById("canvas").clientWidth; var canvas_height = document.getElementByI 阅读全文

posted @ 2021-08-19 11:33 fox_charon 阅读(398) 评论(0) 推荐(0) 编辑

rem自适应布局,移动版

摘要: 代码: (function(baseFontSize, designWidth) { document.documentElement.style.fontSize = (document.documentElement.clientWidth * baseFontSize) / designWid 阅读全文

posted @ 2021-08-19 11:14 fox_charon 阅读(27) 评论(0) 推荐(0) 编辑

导航