<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>利用伪类做小图标</title>
<style type="text/css">
@font-face {
font-family: 'guosheng';
src: url('fonts/iconfont.eot');
src: url('fonts/iconfont.eot?#iefix') format('embedded-opentype'),
url('fonts/iconfont.woff') format('woff'),
url('fonts/iconfont.ttf') format('truetype'),
url('fonts/iconfont.svg#iconfont') format('svg');
}
div{
width:200px;
height:200px;
border: 1px solid gray;
margin:100px auto;
font-family: guosheng;
text-align:center;
line-height:200px;
font-size: 150px;
}
html5css3利用伪类做小图标
最新推荐文章于 2024-04-19 09:08:52 发布