/* flex */ .center { display: flex; justify-content: center; align-items: center; } .flex1 { display: flex; justify-content: space-between; align-items: center; } .flex_l { display: flex; justify-content: flex-start; align-items: center; } .flex_r { display: flex; justify-content: flex-end; align-items: center; } .flex { display: flex; } .flex-center { justify-content: center; } .flex-around { justify-content: space-around; } .flex-between { justify-content: space-between; } .flex-top { align-items: flex-start; } .flex-middle { align-items: center; } .flex-bottom { align-items: flex-end; } .flex-column { flex-direction: column; } .flex-wrap { flex-wrap: wrap; } .flex_1 { flex: 1; } /* 其他 */ .relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; } .fixed-bottom { position: fixed; bottom: 0; left: 0; right: 0; } .block { display: block; } .hide { display: none; } .show { display: block; } .autowrap { word-wrap: break-word; word-break: normal; } .text-left { text-align: left; } .text-center { text-align: center; } .text-right { text-align: right; } .bold { font-weight: 600; } .over-hidden { overflow: hidden; } .bold { font-weight: 700; } .right { float: right; } .left { float: left; } view { box-sizing: border-box; } .text-ellipsis { white-space: nowrap; /*把文本强制显示在一行*/ overflow: hidden; /*隐藏超出部分的文字*/ text-overflow: ellipsis; /*超出显示省略号*/ } .fixed-btn { position: fixed; width: 90rpx; height: 90rpx; bottom: 50rpx; right: 50rpx; background: #3e7ef8; border-radius: 50%; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); } .mr20{ margin-right: 20rpx; }