摘要: js规范 缩进一个tab = 4个空格 + * 左右都要有一个空格 每一条语句后面都要跟一个;分号,可以不带分号,但是以后的js代码需要压缩,就会出现错误,所以养成习惯带分号 查看js错误 1.firefox firebug 2.google google控制台 字符串类型和其他类型相加,自动转换成 阅读全文
posted @ 2019-10-03 13:10 solaris-wwf 阅读(176) 评论(0) 推荐(0)
摘要: 第一种垂直居中的方式 .jz{height: 50px;width: 300px;position: fixed;background: #333;top:50%;left: 50%;margin-top: -25px;margin-left: -150px} <div class="jz"></d 阅读全文
posted @ 2019-10-03 02:03 solaris-wwf 阅读(325) 评论(0) 推荐(0)