css公共样式总结(持续总结)

本文介绍了CSS布局技巧,包括使用`.flex`实现弹性布局,`.align-center`、`.justify-between`等调整元素对齐方式。此外,详细讨论了文本颜色`.text-999`到`.text-94`的渐变效果,以及`.text-center`文本居中和`.text-cut`系列实现文本截断的策略。这些样式在网页设计中起到关键作用,提升用户体验。
摘要由CSDN通过智能技术生成

.flex {
  display: flex;
}
.align-center{
    align-items: center;
}
.justify-between{
    justify-content: space-between;
}
.justify-center{
    justify-content: center;
}
.justify-around{
    justify-content: space-around;
}
.text-999 {
  color: #999;
}
.text-666 {
  color: #666;
}
.text-333 {
  color: #333;
}
.text-94 {
  color: #949494;
}
.text-center {
  text-align: center;
}
.margin-lr-15{
    margin: 0 15px;
}
.padding-lr-15{
  padding: 0 15px;
}
.margin-top-15{
  margin-top: 15px;
}
.padding-top-15{
  padding-top: 15px;
}
.text-bold{
    font-weight: 600;
}
.at-modal__overlay{
  background-color:rgba(0,0,0,.7 )
}
.text-cut {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.text-cut-2,.text-cut-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.text-cut-2 {
    -webkit-line-clamp: 2;
}

.text-cut-4 {
  -webkit-line-clamp: 4;
}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值