记录常用css,根据场景记录
场景 | css |
---|---|
禁止页面滚动 | page{ height: 100%; overflow-y: hidden; } |
组件自动换行并居中(每个组件占一行) | display: flex; flex-direction: column; align-items: center; justify-content: center; |
同一行两端对齐 | justify-content: space-between; |
组件靠右对齐 | margin-left: auto; |
下划线 | text-decoration:underline; |