# CSS
//css
父级 background:#fff -webkit-background-clip: text; color: transparent; 子元素 文字会裁剪父元素透明
文字的边框 text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
文字镂空 背景反色 .header{ background: #000; color: #fff; mix-blend-mode: difference; } .header{ background: #fff; color: #000; mix-blend-mode: screen; } mix-blend-mode:multiply
# 公共css
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: none;
cursor: pointer;
}
input {
outline: none;
}
ul,
ol {
list-style: none;
}
/* diy */
.full-screen {
width: 100%;
height: 100%;
}
/* flex */
.flexCS {
display: flex;
justify-content: center;
align-items: start;
}
.flexCC,
.flexC {
display: flex;
justify-content: center;
align-items: center;
}
.flexCE {
display: flex;
justify-content: center;
align-items: end;
}
.flexBS {
display: flex;
justify-content: space-between;
align-items: start;
}
.flexBC,
.flexB {
display: flex;
justify-content: space-between;
align-items: center;
}
.flexBE {
display: flex;
justify-content: space-between;
align-items: end;
}
.flexAS {
display: flex;
justify-content: space-around;
align-items: start;
}
.flexAC,
.flexA {
display: flex;
justify-content: space-around;
align-items: center;
}
.flexAE {
display: flex;
justify-content: space-around;
align-items: end;
}
.flexLS {
display: flex;
flex-direction: row;
align-items: start;
}
.flexLC,
.flexL {
display: flex;
flex-direction: row;
align-items: center;
}
.flexLE {
display: flex;
flex-direction: row;
align-items: end;
}
.flexUP {
display: flex;
flex-direction: column;
}
.flexW {
display: flex;
flex-wrap: wrap;
}
/* 上下左右居中 */
.absoC {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
/* 点击手 */
.handon {
cursor: pointer;
}
/* 溢出省略号 */
.overell {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
}