复制代码代码如下:
1、外部字体引用:用font-face来引入字体
有的时候,会用到一些系统里没有的字体,我们可能需要从外部引用我们下载的字体,方法是:
复制代码代码如下:
@font-face{
font-family: heeh;
src:url(方正胖娃简体.ttf);
}
.tb{
font-size: 80px;
color: #f40;
font-weight: 300;
font-family: heeh;
}
淘宝
2、过渡效果:属性为transition
在鼠标移动到某一块的时候,在达到效果之前的一个过渡效果。如
复制代码代码如下:
transiton(过渡)
.div_tran{
width: 130px;
height: 100px;
background: rgba(165,237,15,0.5);
opacity: .3;
color: #000;
-webkit-transition:all 3s;
}
.div_tran:hover{
width: 200px;
height: 200px;
background: rgb(28,227,209);
opacity: 1;
color: red;
}
transiton(过渡)
.div_tran{
width: 130px;
height: 100px;
background: rgba(165,237,15,0.5);
opacity: .3;
color: #000;
-webkit-transition:all 3s;
}
.div_tran:hover{
width: 200px;
height: 200px;
background: rgb(28,227,209);
opacity: 1;
color: red;
}
transiton(过渡)



