2022年3月27日

css - 浮动float与清除浮动clear

摘要: 浮动: float:none; left 元素向左浮动。 right 元素向右浮动。 none 默认值。元素不浮动,并会显示在其在文本中出现的位置。 清除浮动: clear: both; left 在左侧不允许浮动元素。 right 在右侧不允许浮动元素。 both 在左右两侧均不允许浮动元素。 n 阅读全文

posted @ 2022-03-27 22:43 每天积极向上 阅读(25) 评论(0) 推荐(0) 编辑

css - 盒子模型盒子阴影box-shadow

摘要: 设置盒子的阴影: box-shadow: 10px 10px 5px #888888; 语法: box-shadow: h-shadow v-shadow blur spread color inset; h-shadow 必需。水平阴影的位置。允许负值。 v-shadow 必需。垂直阴影的位置。允 阅读全文

posted @ 2022-03-27 01:18 每天积极向上 阅读(55) 评论(0) 推荐(0) 编辑

css - 盒子模型圆角边框border-radius

摘要: 设置盒子的边框为圆角: 设置上下左右 border-radius:10px; 设置上左 border-top-left-radius:10px; 设置上右 border-top-right-radius:10px; 设置下左 border-bottom-left-radius:10px; 设置下右 阅读全文

posted @ 2022-03-27 01:09 每天积极向上 阅读(251) 评论(0) 推荐(0) 编辑

css - 盒子模型外边距margin

摘要: 设置盒子中元素的外边距: 上边距 margin-top:10px; 下边距 margin-bottom:10px; 左边距 margin-left:10px; 右边距 margin-right:10px; 复合写法: 上下左右边距 margin:10px; 上下,左右边距 margin:10px 1 阅读全文

posted @ 2022-03-27 00:26 每天积极向上 阅读(153) 评论(0) 推荐(0) 编辑

导航