
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 · 1071 阅读 · 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 · 473 阅读 · 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 · 763 阅读 · 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 · 279 阅读 · 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 · 1570 阅读 · 0 评论