随笔分类 -  css

css文章
摘要:行内元素 1.line-height + text-aligin:center方式 html <div class="box"> <span> 居中,居中,居中,居中,居中,居中,居中, </span> </div> css .box { background: red; width: 800px; 阅读全文

posted @ 2021-08-09 23:11 过鹿人 阅读(285) 评论(0) 推荐(0) |

摘要:1.水平方向的auto值 html <div class="father"> <div class="child"></div> </div> 常规流块盒的总宽度,等于其包含块的宽度,也就是其父元素的内容区域 不设置width,width的默认值为auto,表示吸收掉块盒的剩余空间 css .fat 阅读全文

posted @ 2021-07-29 00:39 过鹿人 阅读(432) 评论(0) 推荐(0) |

摘要:1.css的布局技术有哪些? 正常布局流 display属性 弹性盒子 网格 浮动 定位 CSS 表格布局 多列布局 本文重点涉及到三种布局 正常布局流(normal flow) 正常布局流(normal flow)是指在不对页面进行任何布局控制时,浏览器默认的HTML布局方式。块盒独占一行,行盒水 阅读全文

posted @ 2021-07-26 14:19 过鹿人 阅读(494) 评论(0) 推荐(0) |

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3