摘要:
CSS代码: dot { display: inline-block; height: 1em; line-height: 1; vertical-align: -.25em; overflow: hidden; } dot::before { display: block; content: '...\A..\A.'; white-sp... 阅读全文
摘要:
CSS代码: .noscroll, .noscroll body { overflow: hidden; } .noscroll body { position: relative; } JS代码: $.smartScroll = function(container, selectorScroll 阅读全文
摘要:
/*! * by zhangxinxu(.com) 2017-05-18 * 新版上线时候的黑色半透明镂空遮罩指引效果实现jQuery小插件 * 兼容到IE8+ * MIT使用协议,使用时候保留版权 * 更多原理和使用说明参见:http://www.zhangxinxu.com/wordpress/?p=6171 */ $.guide = function (options) { var d... 阅读全文
摘要:
方法一:使用正则表达式 语法如下: String(Number).replace(/(\d)(?=(\d{3})+$)/g, "$1,"); 举例: String(123456789).replace(/(\d)(?=(\d{3})+$)/g, "$1,"); 结果是:123,456,789 正则表达式方法使用示意截图 方法二:使用toLocaleString()方法 语法如下: Nu... 阅读全文
摘要:
CSS代码: .box { max-width: 414px; height: 480px; border: solid #000; margin: auto; overflow: auto; } .shape { float: left; width: 30px; height: 340px; shape-outside: pol... 阅读全文
摘要:
.target { filter: url("#goo"); } .ball { width: 150px; height: 150px; border-radius: 50%; background-color: #beceeb; position: absolute; } HTML代码: ... 阅读全文
摘要:
CSS代码: input { color: #333; caret-color: red; } @supports (-webkit-mask: none) and (not (caret-color: red)) { input { color: red; } input::first-line { color: #333; } } HTML代码: 阅读全文
摘要:
js源码 走你。。。 页面调用: 阅读全文
摘要:
Document 1111 阅读全文
摘要:
Document 阅读全文