/* 定位 */ .position-absolute{ position: absolute; } .position-fixed{ position: fixed; } .position-relative{ position: relative; } .left-0{ left: 0; } .top-0{ top: 0; } .bottom-0{ bottom: 0; } .right-0{ right: 0; } .z-1{ z-index:1; } /* 文字排列 */ .text-center{ text-align: center; } .text-left{ text-align: left; } .text-right{ text-align: right; } /* flex布局 */ .d-flex{ display: flex; } .d-block{ display: block; } .d-inline-block{ display: inline-block; } .flex-1{ flex: 1; } .flex-s{ flex-shrink: 0; } .flex-column{ flex-direction: column; } .flex-row{ flex-direction: row; } .flex-wrap{ flex-wrap: wrap; } .flex-nowrap{ flex-wrap: nowrap; } .flex-shrink{flex-shrink: 0;} .j-start{ justify-content: flex-start; } .j-center{ justify-content: center; } .j-end{ justify-content: flex-end; } .j-sb{ justify-content: space-between; } .j-sa{ justify-content: space-around; } .a-center{ align-items:center; } .a-start{ align-items: flex-start; } .a-end{ align-items:flex-end; } .a-stretch{ align-items: stretch; } .a-self-start{ align-self: flex-start; } .a-self-auto{ align-self: auto; } .a-self-end{ align-self: flex-end; } .a-self-stretch{ align-self:stretch; } .a-self-baseline{ align-self:baseline; } /* 宽度 */ .w-100{ width:100% } /* 边框 */ .b-b-1 {border: 1px solid black} /* 超出部分隐藏 */ .over_style{ overflow: hidden;/*超出部分隐藏*/ text-overflow:ellipsis;/* 超出部分显示省略号 */ white-space: nowrap;/*规定段落中的文本不进行换行 */ }