根據(jù)老師的代碼寫的,別的都沒問題,就是字體圖標沒有顯示出來,查了好久,不知道哪里出問題了,請好心人指教~
$toolbar-size:?52px;
.toolbar?{
position:?fixed;
left:?50%;
bottom:?5px;
margin-left:?-$toolbar-size?/?2;
}
.toolbar-item?{
position:?relative;
display:?block;
width:?$toolbar-size;
height:?$toolbar-size;
margin-top:?1px;
&:hover?{
.toolbar-btn?{
&:before?{
top:?-$toolbar-size;
}
&:after?{
top:?0;
}
}
&:after?{
@include?opacity(1);
@include?scale(1);
}
}
&:after?{
content:?"";
position:?absolute;
right:?$toolbar-size?-?6;
bottom:?-10px;
width:?172px;
background:?url(../imgs/toolbar_img.png)?no-repeat;
@include?opacity(0);
@include?transform-origin(95%?95%);
@include?scale(0.01);
@include?transition(all?1s);
}
}
.toolbar-item-weixin?{
&:after?{
content:?"";
height:?212px;
background-position:?0?0;
}
.toolbar-btn?{
&:before?{
content:?"\e900";
}
&:after?{
content:?"公眾\A賬號";
}
}
}
.toolbar-item-feedback?{
.toolbar-btn?{
&:before?{
content:?"\e901";
}
&:after?{
content:?"意見\A反饋";
}
}
}
.toolbar-item-app?{
&:after?{
content:?"";
height:?194px;
background-position:?0?-222px;
}
.toolbar-btn?{
&:before?{
content:?"\e903";
}
&:after?{
content:?"APP\A下載";
}
}
}
.toolbar-item-top?{
.toolbar-btn?{
&:before?{
content:?"\e902";
}
&:after?{
content:?"返回\A頂部";
}
}
}
.toolbar-btn?{
position:?absolute;
left:?0;
top:?0;
width:?$toolbar-size;
height:?$toolbar-size;
overflow:?hidden;
font-family:?'icomoon'?!important;
speak:?none;
font-style:?normal;
font-weight:?normal;
font-variant:?normal;
text-transform:?none;
line-height:?1;
/*?Better?Font?Rendering?===========?*/
-webkit-font-smoothing:?antialiased;
-moz-osx-font-smoothing:?grayscale;
&:before?{?
content:?"";
position:?absolute;
left:?0;
top:?0;
width:?$toolbar-size;
height:?$toolbar-size;
background-color:?#D0D6D9;
font-size:?30px;
color:?#fff;
text-align:?center;
line-height:?$toolbar-size;
@include?transition(top?1s);
}
&:after?{?
content:?"";
position:?absolute;
left:?0;
top:?$toolbar-size;
width:?$toolbar-size;
height:?$toolbar-size;
background-color:?#98A1A6;
font-size:?12px;
color:?#fff;
text-align:?center;
line-height:?1.2;
padding-top:?12px;
@include?transition(top?1s);
white-space:?pre;
}
}
2018-05-30
解決方法
https://blog.csdn.net/mxf_bear/article/details/80505295
2016-12-08
@font-face {
? font-family: 'icomoon';
? src: ?url('fonts/icomoon.eot?bmt6bq');
? src: ?url('fonts/icomoon.eot?bmt6bq#iefix') format('embedded-opentype'),
? ? url('fonts/icomoon.ttf?bmt6bq') format('truetype'),
? ? url('fonts/icomoon.woff?bmt6bq') format('woff'),
? ? url('fonts/icomoon.svg?bmt6bq#icomoon') format('svg');
? font-weight: normal;
? font-style: normal;
}
這段加載css代碼里
2016-08-16
解決了沒?? ? 遇到同樣的問題了,求告知
2016-08-11
圖片路徑出現(xiàn)問題了,你找到的圖標路徑,添加進去就行
2016-05-07
路徑問題。。。。(表示找了倆小時才知道怎么回事)
在css文件最上面添加上圖標的style文件中的定義路徑的(就是。。。
表示現(xiàn)在只知道這樣做
(心里好苦)
2016-03-15
如右圖: