1.background-image:linear-gradient(to left,red,yellow);
角度 用英文 作用
0deg to top 从下到上
90deg to right 从左到右
180deg to bottom 从上到下
270deg to top right 左下角到右下角
to topleft 右下角到左下角
第一个参数省略时,默认角度为0deg
2.设置一处文本显示省略号
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap;
3.嵌入字体
@font-face {
font-family : 字体名称;
src : 字体文件在服务器上的相对或绝对路径;
}
p {
font-size :12px;
font-family : "My Font";
/*必须项,设置@font-face中font-family同样的值*/
}
角度 用英文 作用
0deg to top 从下到上
90deg to right 从左到右
180deg to bottom 从上到下
270deg to top right 左下角到右下角
to topleft 右下角到左下角
第一个参数省略时,默认角度为0deg
2.设置一处文本显示省略号
text-overflow:ellipsis;
overflow:hidden;
white-space:nowrap;
3.嵌入字体
@font-face {
font-family : 字体名称;
src : 字体文件在服务器上的相对或绝对路径;
}
p {
font-size :12px;
font-family : "My Font";
/*必须项,设置@font-face中font-family同样的值*/
}