摘要: 1、background-repeat 不用说,常用直接no-repeat 2、background-size 常用的分为两个,一个是铺满:cover, 另一个是使图像适应宽高:contain 3、background-position 设置图片所处的位置:left/right/bottom/top 阅读全文
posted @ 2017-03-14 21:08 贝尔塔猫 阅读(167) 评论(0) 推荐(0)
摘要: 水平居中 transform: translateX(-50%); left: 50%; 垂直居中同理 transform: translateY(-50%); top:50%; 垂直水平居中 top: 50%; left: 50%; transform: translate3d(-50%, -50 阅读全文
posted @ 2017-03-14 20:51 贝尔塔猫 阅读(315) 评论(0) 推荐(0)
摘要: 使用 typeof 来判断数据类型,只能区分基本类型,即 “number”,”string”,”undefined”,”boolean”,”object” 五种。 但 Object.prototype.toString.call 使用,可以区分7种 console.log(Object.protot 阅读全文
posted @ 2017-03-14 17:20 贝尔塔猫 阅读(362) 评论(0) 推荐(0)
摘要: 错误列表: 人性化一点。别老虐我啊晓梦大师 阅读全文
posted @ 2017-03-14 09:48 贝尔塔猫 阅读(676) 评论(0) 推荐(0)