摘要: margin塌陷解决方法: #####给父级元素触发 BFC: (1)position:absolute; (2)display:inline-block; (3)float:left/right; (4)overflow:hidden;(溢出部分隐藏) //使用`position:absolute 阅读全文
posted @ 2020-08-13 14:05 夏目的三三 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 原因:文件默认编码格式为ASNI编码,需要改成UTF-8编码 解决方案: ①用记事本打开component.js文件 ②另存文件,修改编码为UTF-8编码,保存 阅读全文
posted @ 2020-08-12 19:07 夏目的三三 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 单行文本溢出打点 overflow: hidden; text-overflow:ellipsis; white-space: nowrap; 多行文本溢出打点 display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clam 阅读全文
posted @ 2020-08-06 17:54 夏目的三三 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 如图 在span和input的css里各添加一行代码: vertical-align:top; (span和input在同一个盒子里) 两个不同大小的字体中间对齐 display: flex; justify-content: center; align-content: center; 阅读全文
posted @ 2020-08-05 16:28 夏目的三三 阅读(1692) 评论(0) 推荐(0) 编辑