摘要: 获取选中的复选框的值和文本 js var $sg= document.getElementsByName('sg'); var checkedValue = [];//保存值 var checkedText = [];//保存文本 for (var i = 0; i 阅读全文
posted @ 2019-02-01 11:10 十年后2028 阅读(259) 评论(0) 推荐(0)
摘要: ```js js中对String去空格 str为要去除空格的字符串: 去除所有空格: str = str.replace(/\s+/g,""); 去除两头空格: str = str.replace(/^\s+|\s+$/g,""); 去除左空格: str=str.replace( /^\s*/, ''); 去除右空格: str=str.replace... 阅读全文
posted @ 2019-02-01 10:56 十年后2028 阅读(222) 评论(0) 推荐(0)
摘要: 不同浏览器对document.documentElement和document.body的scrollheight ,scrollTop,clientHeight以及判断滚动条是否滚动到页面最底部 https://www.cnblogs.com/hsprout/p/4998694.html 阅读全文
posted @ 2019-01-30 15:05 十年后2028 阅读(102) 评论(0) 推荐(0)
摘要: 手机版不缩放 用最高版本的edeg渲染页面,如果ie安装了chrome frame就用chrome模式渲染页面 解释 https://blog.csdn.net/u010505097/article/details/52396595 · 当有双内核时使用谷歌内核 阅读全文
posted @ 2019-01-23 21:01 十年后2028 阅读(185) 评论(0) 推荐(0)
摘要: 注明:内容来处https://www.cnblogs.com/ss977/p/5846176.html 1、现webkit内核的浏览器支持display: webkit box;属性, 所以网页中显示两行文字,超出部分省略,可以用样式 2、为兼容其他浏览器,则需要js解决,以下为封装的方法。 阅读全文
posted @ 2019-01-17 17:08 十年后2028 阅读(546) 评论(0) 推荐(0)
摘要: ```css html, body, ul, ol, li, dd, dt, dl, div, h1, h2, h3, h4, h5, h6, span, label, input, p, i, a { margin: 0px; padding: 0px; } a{ list-style: none; } img{ border:0; } .clear:after{ ... 阅读全文
posted @ 2019-01-16 15:31 十年后2028 阅读(96) 评论(0) 推荐(0)
摘要: ```html ``` 阅读全文
posted @ 2019-01-13 14:49 十年后2028 阅读(317) 评论(0) 推荐(0)
摘要: <! [if !IE] <! 除IE外都可识别 <! <![endif] <! [if IE] 所有的IE可识别 <![endif] <! [if IE 6] 仅IE6可识别 <![endif] <! [if lt IE 6] IE6以及IE6以下版本可识别 <![endif] <! [if gte 阅读全文
posted @ 2019-01-04 17:07 十年后2028 阅读(234) 评论(0) 推荐(0)
摘要: 文章来自 https://blog.csdn.net/qq_33769914/article/details/54705820 参考 https://blog.csdn.net/qq_30100043/article/details/76408915 阅读全文
posted @ 2019-01-02 19:16 十年后2028 阅读(6058) 评论(0) 推荐(1)
摘要: 基于vue 的 iviewui https://www.iviewui.com/components/tabs BSYDH pc版用的多 mui http://dev.dcloud.net.cn/mui/ vant https://youzan.github.io/vant/ /zh CN/tab 阅读全文
posted @ 2018-12-30 18:26 十年后2028 阅读(132) 评论(0) 推荐(0)