看一下就懂了吧
肯定可以打开的,网速的问题 打开慢。。
看看官方文档有没有相关的
是老师讲课这里这种么,个人认为是span高52px,行高12px*1.2约等于14,两行即28,padding-top:12px,所以下面也有接近12px,使文字看起来是垂直居中的
是没有加css3的样式transition()进行动画上的过度吧
scss部分 $toolbar-size:52px; .toolbar{ position: fixed; left: 50%; bottom: 5px; margin-left: -$toolbar-size / 2; } //将重复的代码合并 .toolbar-item,.toolbar-btn,.toolbar-icon,.toolbar-text{ width: $toolbar-size; height: $toolbar-size; } .toolbar-item{ position: relative; display: block; /* width: $toolbar-size; height: $toolbar-size;*/ margin-top: 1px; &:hover{ .toolbar-icon{ top:-$toolbar-size; } .toolbar-text{ top: 0; } .toolbar-layer{ @include opacity(1); @include scale(1); @include transition(all 1s) } } } .toolbar-btn{ position: absolute; left: 0; top: 0; /* width: $toolbar-size; height: $toolbar-size;*/ overflow: hidden; } .toolbar-icon{ position: absolute; left: 0; top: 0; /* width: $toolbar-size; height: $toolbar-size;*/ background-color: #d0d6d9; font-size: 36px; color: #fff; text-align: center; line-height: $toolbar-size; @include transition(top 1s); } .toolbar-text{ position: absolute; left: 0; top:$toolbar-size; /* width: $toolbar-size; height: $toolbar-size;*/ background-color: #98a1a6; padding-top: 12px; font-size: 12px; color: #fff; text-align: center; line-height: 1.2; @include transition(top 1s); } .toolbar-layer{ position: absolute; right: $toolbar-size - 6; bottom: -10px; width: 172px; background: url(../img/toolbar_img.png); background-repeat: no-repeat; @include opacity(0); @include transform-origin(95% 95%); @include scale(0.01); @include transition(all 1s); } .toolbar-layer-weixin{ height: 212px; background-position: 0 0; } .toolbar-layer-app{ height: 194px; background-position: 0 -222px; }
1,看看引入的的图片对不对
2,显示和隐藏效果写对地方
3,各个标签定位方式是否正确
你贴代码呀,不然怎么看
一般情况下,背景图片不显示有两点原因:一 引入路径不正确;二 背景图片定位有误。希望能帮助到你。
审查元素的时候看看能不能对应找到before的content值 如果没有证明css有问题 如果有的话说明图标字体的路径有问题
没有问题,可能只是提供的预览效果吧!
而且,可以自定义icon font-size!
请问 是什么情况呢?
外部样式引用了吗?路径写对了吗?
你还要源代码就说明你可能并没有真正的听懂,如果听懂了,不用要源代码自己就能敲出来,就算做不到这样,你可以对着视频自己敲一次,根不上就把视频暂停,这样对你的理解也有帮助。
检查下地址,一般开头可能有误
https://icomoon.io/app/#/select
http://www.w3ci.com/soft/716.html 里面有说怎么给sublime添加sass和less高亮的插件
Ctrl + Alt + C
不过您得先安装ClassName这个插件