摘要: 父级元素 text align:center; 自级元素 text align:left; display:inline block; 阅读全文
posted @ 2017-11-22 11:09 伟_少 阅读(1343) 评论(0) 推荐(0) 编辑
摘要: css代码 .triangle right{ height:0; width:0; border top: 40px solid transparent; border bottom: 40px solid transparent; border left: 30px solid 000; } .t 阅读全文
posted @ 2017-11-22 10:54 伟_少 阅读(534) 评论(0) 推荐(1) 编辑
摘要: 兼容总结 如果两个都是属性,用逻辑 || 做兼容 如果有一个是方法,用三元做兼容 如果多个属性或方法,封装函数做兼容 获取class属性值的兼容 function getClass (obj){ if(obj.getAttribute("class") == null){ return (obj.g 阅读全文
posted @ 2017-11-22 10:12 伟_少 阅读(216) 评论(1) 推荐(1) 编辑