![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
Smart_coding
来自前端程序员的呐喊
展开
-
js获取浏览器各种宽高
document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.documentElement.clientHeight ==> 可见区域高度网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeig原创 2020-11-27 21:50:49 · 1010 阅读 · 0 评论 -
解决移动端点击三百毫秒延迟问题
引入js! function () { "use strict"; function t(e, o) { function i(t, e) { return function () { return t.apply(e, arguments) } } var r; if (o = o || {}, this.trackingClick = !1,原创 2020-10-30 19:31:40 · 402 阅读 · 0 评论 -
实现竖向滚动轮播,类似通知提醒消息
<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>测试</title> <style type="text/css"> /*样式设置*/ body { margin: 0; } #scroll-box { w原创 2020-10-16 10:58:54 · 621 阅读 · 0 评论 -
多个音视频标签只播放一个音视频
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title></head><body> <audio c原创 2020-10-16 10:40:31 · 232 阅读 · 0 评论 -
实现点击复制功能(css,html,js)
js代码区域$(".copyNow").click(function(e){ var text = $('#copycode'); text.select(); document.execCommand("Copy"); if (text.val()) { webToast("邀请码复制成功",1000); } else { webToast("邀请码复制失败",'center',1000); }});html<原创 2020-10-13 09:57:17 · 1362 阅读 · 0 评论