随笔分类 - css
摘要:四种方法 * width() 内容 * innerWidth() 内容+内边距 * outerWidth() 内容+内边距+边框 * outerWidth(true) 内容+内边距+边框+外边距
阅读全文
摘要:https://blog.csdn.net/qq_39083004/article/details/78498178 https://www.imooc.com/article/17571 推荐 offsetLeft 一个元素的offsetLeft值,就是这个元素左边框外,到自己的offsetPar
阅读全文
摘要:reset.css(几乎每个项目都要引入的css) @charset "utf-8";html{background-color:#fff;color:#000;font-size:12px} body,ul,ol,dl,dd,h1,h2,h3,h4,h5,h6,figure,form,fields
阅读全文