投影:
box-shadow: 0px 15px 24px -5px #7a8fae;
渐变色背景:
background-image: linear-gradient(#ffffff 40px, #ddecf2 210px, #d3e3e9);
background-image: radial-gradient(farthest-side ellipse at 50% 70%, hsla(210, 1%, 78%, 0.73) 100px, rgba(150, 150, 150, 0.7) 400px, hsla(225, 4%, 18%, 0.8) 100%);
background-image: radial-gradient(ellipse at 50% 70%, hsla(240, 1%, 90%, 1), hsla(225, 8%, 28%, 1));
动画:
transition:width,height 2s ease;
transition: transform .2s ease-in;
@keyframes animationname{keyframes-selector{css-styles;}}
animation:moveHover 5s ease-in-out 0.2s;
@keyframes moveHover{0%{top:0px;left:0px;background:#cd4a48;}50%{top:200px;left:200px;background:#A48992;}100%{top:350px;left:350px;background:#FFB89A;}}
旋转:
transform: rotate(180deg);
缩放
-webkit-transform: scale(.8); transform: scale(.8);
transform: scale(.8); transform: scale(.8);
transform: scale(1.4);
结合:
transform: translateY(-50%) rotate(-45deg);
选择器:
li:nth-child(4){margin-right: 0;}
/*icon字体*/
@font-face {
font-family: 'iconfont'; /* project id 1890891 */
src: url('//at.alicdn.com/t/font_1890891_s1wsg9o7cz.eot');
src: url('//at.alicdn.com/t/font_1890891_s1wsg9o7cz.eot?#iefix') format('embedded-opentype'),
url('//at.alicdn.com/t/font_1890891_s1wsg9o7cz.woff2') format('woff2'),
url('//at.alicdn.com/t/font_1890891_s1wsg9o7cz.woff') format('woff'),
url('//at.alicdn.com/t/font_1890891_s1wsg9o7cz.ttf') format('truetype'),
url('//at.alicdn.com/t/font_1890891_s1wsg9o7cz.svg#iconfont') format('svg');
}
.iconfont {
font-family:"iconfont" !important;
font-size:16px;
font-style:normal;
-webkit-font-smoothing: antialiased;
-webkit-text-stroke-width: 0.2px;
-moz-osx-font-smoothing: grayscale;
}
/* 设置滚动条的样式 */
::-webkit-scrollbar{
width: 10px;
}
/*滚动槽*/
::-webkit-scrollbar-track{
box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
border-radius: 10px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
border-radius: 10px;
background: #2d66a5;
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
}
媒体查询
@media (max-width: 375px) {
body{font-size:12px; }
}
计算值:
width:calc(50% - 10px);
透明度:
filter:alpha(opacity=90); -moz-opacity:0.9; opacity:0.9;
/* 文字排列 */
.verticle-mode{writing-mode:tb-rl; -webkit-writing-mode:vertical-rl; writing-mode:vertical-rl; *writing-mode:tb-rl;}