2019年9月16日

摘要: 如下: justify-content 的使用(弹性子元素在父容器中的位置) 盒子居中显示 <style> .box{ display: flex; width: 300px; background-color:gray; justify-content: center; } .box div{ w 阅读全文
posted @ 2019-09-16 10:04 惜圆 阅读(141) 评论(0) 推荐(0)
摘要: <style> width:300px; height:200px; background-color:blue; box-shadow:4px 5px 6px 7px rgba(0,0,0,.5) } width:300px; height:200px; background-color:blue 阅读全文
posted @ 2019-09-16 10:04 惜圆 阅读(13239) 评论(0) 推荐(0)
摘要: 圆角边框border-radius 在CSS中,用border-radius属性来定义圆角边框。 border-radius 属性是一个简写属性,用于设置四个 border-*-radius 属性。 border: solid; 必须先有边框线 border-radius: 50px 0px 30p 阅读全文
posted @ 2019-09-16 10:04 惜圆 阅读(528) 评论(0) 推荐(0)
摘要: 一、Position属性:规定元素定位类型: 1.static (默认值)没有定位 元素出现在正常的流中(忽略 top, bottom, left, right 或者 z-index 声明)。 2.absolute绝对定位 相对于父元素进行定位,元素位置通过top right bottom left 阅读全文
posted @ 2019-09-16 10:03 惜圆 阅读(678) 评论(0) 推荐(0)

导航