Fork me on github
摘要: 阅读全文
posted @ 2022-07-25 22:59 zjy4fun 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 参考: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Closures https://juejin.cn/post/7089689228614828045 闭包 一个函数和对其周围状态的引用捆绑到一起, 这样的组合就是闭包. 也就是 阅读全文
posted @ 2022-07-25 22:49 zjy4fun 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.runoob.com/css/css-align.html 居中对齐 元素居中对齐 margin: auto 设置元素的宽度将防止它溢出到容器的边缘 元素通过指定宽度, 并将两边的空外边距平均分配 <!DOCTYPE html> <html lang="en"> <h 阅读全文
posted @ 2022-07-25 21:19 zjy4fun 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.runoob.com/css/css-float.html 1. 什么是Float? CSS的Float, 会使元素向左或向右移动, 其周围的元素也会重新排列, 往往是用于图像, 但它在布局时一样非常有用 2. 元素怎样浮动? 元素的水平方向浮动, 意味着元素只能左右 阅读全文
posted @ 2022-07-25 20:13 zjy4fun 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.runoob.com/css/css-float.html 1. 什么是Float? CSS的Float, 会使元素向左或向右移动, 其周围的元素也会重新排列, 往往是用于图像, 但它在布局时一样非常有用 2. 元素怎样浮动? 元素的水平方向浮动, 意味着元素只能左右 阅读全文
posted @ 2022-07-25 19:50 zjy4fun 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.runoob.com/css/css-positioning.html 代码: https://github.com/zjy4fun/html-css-learn/issues/2 position用来决定元素在文档中的定位方式 static, 元素的top, rig 阅读全文
posted @ 2022-07-25 19:40 zjy4fun 阅读(22) 评论(0) 推荐(0) 编辑