<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>字体图标</title>
<link rel="stylesheet" href="1025-01css.css" />
<link
rel="stylesheet"
href="//at.alicdn.com/t/c/font_3735622_lqktuxdtoqp.css"
/>
<style>
:room {
font-size: 10px;
}
/*
媒体查询
1rem = 10px , 1rem = 12px
< 380px , 1rem = 12px
小于380px ,意思就是不大于380px
*/
@media (max-width: 380px) {
html {
font-size: 10px;
}
}
@media (min-width: 380px) and (max-width: 415px) {
html {
font-size: 12px;
}
}
/* 媒体查询的宽度顺序:
1.移动端:从小往大写
2.PC端:从大往小写
*/
.iconfont.class {
font-size: x-large;
color: red;
display: inline-block;
border: 1px solid #098;
width: 5rem;
}
.iconfont.class span {
font-size: 1.2rem;
width: 5rem;
display: block;
text-align: center;
}
.iconfont.class .gouwusz {
font-size:1.2rem;
color: red;
width: 5rem;
}
.iconfont.class span:hover {
color: lightgreen;
cursor: pointer;
transition: color 0.5s linear;
}
</style>
</head>
<body>
<!-- 字体图标 -->
<!-- unicode -->
<!-- <div class="iconfont unicode">
<span></span><span></span>
</div> -->
<div class="iconfont class">
<span class="icon-xingzhuanggongnengtubiao-"></span><span class="gouwusz">购物车</span>
</div>
<div class="iconfont class">
<span class="icon-shezhi"></span></span><span class="gouwusz">设置</span>
</div>
</body>
</html>