摘要: SVG 意为可缩放矢量图形(Scalable Vector Graphics)。SVG 使用 XML 格式定义图像。 <svg> <circle r="50" cx="50" cy="50" fill="green"/> </svg>(形成一个圆) section元素描绘的是一个文档或者程序里的普通 阅读全文
posted @ 2018-10-31 15:26 错过1332 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 网站对火狐不兼容的原因以及解决的方法 1.DOCTYPE 影响 CSS 处理2.FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行3.FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 阅读全文
posted @ 2018-10-29 17:23 错过1332 阅读(595) 评论(0) 推荐(0) 编辑
摘要: scrollbar属性、样式详解1.overflow内容溢出时的设置(设定被设定对象是否显示滚动条) overflow-x水平方向内容溢出时的设置 overflow-y垂直方向内容溢出时的设置 以上三个属性设置的值为visible(默认值)、scroll、hidden、auto。2.scrollba 阅读全文
posted @ 2018-10-29 15:34 错过1332 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 手机端页面必须放上这句话: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="format-detection" co 阅读全文
posted @ 2018-10-29 14:33 错过1332 阅读(144) 评论(0) 推荐(0) 编辑
摘要: attr('checked', 'checked')调用多次仅第一次生效 使用attr()获取这些属性的返回值为String类型,如果被选中(或禁用)就返回checked、selected或disabled,否则(即元素节点没有该属性)返回undefined。并且,在某些版本中,这些属性值表示文档加 阅读全文
posted @ 2018-10-29 13:42 错过1332 阅读(83) 评论(0) 推荐(0) 编辑
摘要: jQuery function fomatterTel(val, old) {//val: 当前input的值,old: input上次的值 var str = ""; var telLen = val.length; if (old.length <= telLen) { if (telLen 4 阅读全文
posted @ 2018-10-27 14:26 错过1332 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: 禁止粘贴:onpaste = "return false"; 点击输入框全选旧内容:onclick="this.select()" 获得焦点时全选:onfocus = "this.select()" 阅读全文
posted @ 2018-10-27 14:23 错过1332 阅读(73) 评论(0) 推荐(0) 编辑
摘要: white-space:normal; word-break:break-all;字母数字强制换行表格宽度失效给上table-layout:fixed(display: table-cell;此元素会作为一个表格单元格显示) 阅读全文
posted @ 2018-10-23 17:21 错过1332 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 超出两行变省略号 overflow:hidden; text-overflow:ellipsis;display:-webkit-box; -webkit-box-orient:vertical;-webkit-line-clamp:2; 阅读全文
posted @ 2018-10-23 17:18 错过1332 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 复选框 <p class="copy_td"><input type="checkbox" class="input_check" id="checkbox11"><label for="checkbox11"></label></p> p {position: relative;} p .inpu 阅读全文
posted @ 2018-10-23 17:05 错过1332 阅读(111) 评论(0) 推荐(0) 编辑