上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no"> <!-- 兼容处理:如果可能,调取ie高版本内核 --> <meta http-equiv="X-UA-Compatible 阅读全文
posted @ 2021-04-07 10:34 诡道也 阅读(44) 评论(0) 推荐(0) 编辑
摘要: html代码如下: 固定样式: 方法一:利用定位(常用方法,推荐) .parent{ position:relative; } .child{ position:absolute; top:50%; left:50%; margin-top:-50px; margin-left:-50px; } 方 阅读全文
posted @ 2021-04-07 10:33 诡道也 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 当父级使用了flex布局,当内部子元素总宽度大于它的宽度时,就会等比例压缩子元素宽度,解决方法就是 1、给所有的子元素设置flex-shrink:0;2、将所有子元素的width属性更改为min-width; 阅读全文
posted @ 2021-04-07 10:32 诡道也 阅读(81) 评论(0) 推荐(0) 编辑
摘要: // 内容在粘贴板上面 copyToClipboard(content) { if (window.clipboardData) { window.clipboardData.setData("text", content); } else { (function (content) { docum 阅读全文
posted @ 2021-04-06 14:30 诡道也 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 解决方法一: pageNo: 1, //当前页数 pageSize: 10, //每页条数 totalCount: 1, //总条数 pageTotle: 1, //总页数 const totalPage = Math.ceil( (this.totalCount - 1) / this.pageS 阅读全文
posted @ 2021-04-06 14:24 诡道也 阅读(364) 评论(0) 推荐(0) 编辑
摘要: <template> <!-- 回放 --> <div class='playback' ref="playback"> <div class="video-wrapper"> <video-player class="video-player vjs-custom-skin" ref="video 阅读全文
posted @ 2021-04-01 09:47 诡道也 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-04-01 09:46 诡道也 阅读(24) 评论(0) 推荐(0) 编辑
摘要: https://nodejs.org/en/download/releases/ 阅读全文
posted @ 2021-03-27 22:55 诡道也 阅读(852) 评论(0) 推荐(0) 编辑
摘要: <body>只允许输入正整数: <input type='text' onkeyup="this.value=this.value.replace(/^(0+)|[^\d]+/g,'')"> <br/> <br/>只允许输入英文: <input type="text" onkeyup="this.v 阅读全文
posted @ 2021-03-10 08:56 诡道也 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1.由数字、26个英文字母或者下划线组成的字符串: ^[0-9a-zA-Z_]{1,}$ 2.非负整数(正整数 + 0 ): ^/d+$ 3. 正整数: ^[0-9]*[1-9][0-9]*$ 4.非正整数(负整数 + 0): ^((-/d+)|(0+))$ 5. 负整数 : ^-[0-9]*[1- 阅读全文
posted @ 2021-03-09 21:29 诡道也 阅读(216) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页