IconFont 图标
-
unfold.unfold
-
fold.fold
-
warn.warn
-
hammer.hammer
-
notice.notice
-
eye.eye-open
-
eye-close.eye-close
第一步:使用font-face声明字体
@font-face {font-family: 'iconfontcsh'; src: url('iconfontcsh.eot'); /* IE9*/ src: url('iconfontcsh.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('iconfontcsh.woff') format('woff'), /* chrome、firefox */ url('iconfontcsh.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/ url('iconfontcsh.svg#iconfontcsh') format('svg'); /* iOS 4.1- */ }第二步:定义使用iconfont的样式
.iconfontcsh{ font-family:"iconfontcsh" !important; font-size:16px;font-style:normal; -webkit-font-smoothing: antialiased; -webkit-text-stroke-width: 0.2px; -moz-osx-font-smoothing: grayscale;}第三步:挑选相应图标并获取字体编码,应用于页面
<i class="iconfontcsh">3</i>