![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jquery
jiumiwang
这个作者很懒,什么都没留下…
展开
-
Js实现元素拖拽 吸附效果
直接上代码 <style type="text/css"> #Makes { background: #000; width: 1.875rem; height: 1.875rem; position: fixed; bottom: 1rem; right: 1rem; cursor:pointer ; } </style> <div id="Makes"></div> var elements =原创 2021-12-17 15:12:07 · 1974 阅读 · 0 评论 -
进度条(报名,活动进度条)
话不多说上效果图 (根据比例算出进度) Ps : 代码乱差,能手写出来不错了 //目前兼容移动端 <div class="yyds"> //提示当前已>已预约多少人 <div class="Bo_Tips">已预约<span class="Tips_text"></span><b></b>人</div> </div> <div class="B原创 2021-08-25 10:35:16 · 223 阅读 · 0 评论 -
2021-08-20 JS及Jq获取各种宽高
**Javascript:** 网页可见区域宽: document.body.clientWidth 网页可见区域高: document.body.clientHeight 网页可见区域宽: document.body.offsetWidth (包括边线的宽) 网页可见区域高: document.body.offsetHeight (包括边线的高) 网页正文全文宽: document.body.scrollWidth 网页正文全文高: document.body.scrollHeight 网页被卷去的高:原创 2021-08-20 11:38:40 · 90 阅读 · 0 评论 -
Jq 的 ajax请求(持续更新)
一个简单的Jquery的Ajax请求 $.ajax({ type : '', // get或者post请求 url : '' , //url地址 data : '', //需要发送的数据 timeout : 0 , //设置请求超时时间 async : true, //true(异步)或者false(同步)同步请求将锁住浏览器,用户其它操作必须等待请求完成才可以执行。 dataType : 'json', //值如果为'json',会把后端返回的字符串通过JSON原创 2021-07-26 11:56:34 · 122 阅读 · 0 评论