精灵图
以左上角为原点,右为x轴正方向;下为y轴正方向,根据此坐标挪动图片。
background:url() x轴 y轴
background-position: x轴 y轴
字体图标
主要用于显示网页中通用、常用的一些小图标
三角制作
.box1 {
width: 0;
height: 0;
/* border: 10px solid pink; */
border-top: 10px solid pink;
border-right: 10px solid red;
border-bottom: 10px solid blue;
border-left: 10px solid green;
}
.box2 {
width: 0;
height: 0;
border: 50px solid transparent;
border-left-color: pink;
margin: 100px auto;
}
.jd {
position: relative;
width: 120px;
height: 249px;
background-color: pink;
}
.jd span {
position: absolute;
right: 15px;