Web前端 知识点(四)

outline-style: none样式
outline-width: thick宽度
outline-color: aqua颜色
float: left浮动
clear: both清除浮动
margin:0px auto左右居中
boder+paddding+content盒子大小
margin外边距
padding内边距
*{
    padding: 0;
    margin: 0;
}

清除元素默认外边距
display: flex改为弹性盒子
flex-direction: row-reverse主轴方向
ustify-content: center主轴排列方式
justify-content: space-between两边贴边,中间平分剩余空间
justify-content: space-around平分剩下空间
align-items: center交叉轴的对齐方式
flex-wrap: wrap自动换行
flex-grow: 1分配剩余空间的相对比例
order: -2order值越小,排列越靠前
flex-shrink: 0指定了 flex 元素的收缩规则
flex:1与所有 CSS 尺寸相同,单位与数字间无空格
grid-template-columns: 1fr 1fr 1frgrid列
grid-template-rows: 200pxgrid行
row-gap: 20px行间距
column-gap: 20px列间距
gap: 20px间距
grid-row: 2/4合并行
grid-column: 1/3合并列

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值