課程
/前端開發(fā)
/JavaScript
/側(cè)欄工具條開發(fā)
老師,可以把css文件傳上來嗎?我沒有用sass
2015-07-06
源自:側(cè)欄工具條開發(fā) 2-3
正在回答
純css代碼寫的,可以彈出二維碼:
.box {width: 1190px;
?background: #ccc;
? color: #000;
? font-size: 36px;
? text-align: center;
? margin: 0 auto;
}
.toolbar {
? position: fixed;
? bottom: 25px;
? /*left: 50%;
? margin-left: -26px;*/
? /*top: 50%;
? margin-top: -106px;*/
? right: 5px;
.toolbar-item {
? position: relative;
? display: block;
? width: 52px;
? height: 52px;
? background: url(../images/toolbar.png) center center no-repeat;
? margin-top: 1px;
? transition: background-position 1s;
.toolbar-item-weixin {
? background-position: 0 -798px;
.toolbar-item-weixin:hover {
? background-position: 0 -860px;
/*.toolbar-item:hover .toolbar-layer {
? opacity: 1;
? filter: alpha(opacity=100);
? transform: scale(1);
}*/
.toolbar-item-weixin:hover .toolbar-layer, .toolbar-item-app:hover .toolbar-layer {
.toolbar-item-feedback {
? background-position: 0 -426px;
.toolbar-item-feedback:hover {
? background-position: 0 -488px;
.toolbar-item-app {
? background-position: 0 -550px;
.toolbar-item-app:hover {
? background-position: 0 -612px;
.toolbar-item-top {
? background-position: 0 -674px;
.toolbar-item-top:hover {
? background-position: 0 -736px;
.toolbar-layer {
? position: absolute;
? right: 46px;
? bottom: -10px;
? width: 172px;
? background: url(../images/toolbar.png) no-repeat;
? opacity: 0;
? filter: alpha(opacity=0);
? transform: scale(0.01);
? /*transform-origin: right bottom;*/
? transform-origin: 95% 95%;
? transition: all 1s;
.toolbar-item-weixin .toolbar-layer {
? height: 212px;
? background-position: 0px 0px;
.toolbar-item-app .toolbar-layer {
? height: 194px;
? background-position: 0 -222px;
?
我也是用css的,就是做到選擇toolbar-layout私有屬性的時(shí)候就不知道怎么做了。
@charset "utf-8";
/* CSS Document */
.toolbar{position:fixed;left:50%;bottom:5px;margin-left:-26px}
.toolbar-item{display:block;width:52px;height:52px;background-image:url(toolbar.png); background-repeat:no-repeat;margin-top:1px;position:relative;}
.toolbar-item:hover toolbar-layer{opacity:1;transform:scale(1);}
.toolbar-item-weixin{background-position: 0 -798px;}
.toolbar-item-weixin toolbar-layer{height:212px;background-position:0 0;}
.toolbar-item-weixin:hover{background-position: 0 -860px;}
.toolbar-item-feedback{background-position:0 -426px;}
.toolbar-item-feedback:hover{background-position:0 -488px;}
.toolbar-item-app{background-position:0 -550px;}
.toolbar-item-app toolbar-layer{height:194px;background-position:0 -222px;}
.toolbar-item-app:hover{background-position:0 -612px;}
.toolbar-item-top{background-position:0 -674px;}
.toolbar-item-top:hover{background-position:0 -736px;}
.toolbar-layer{positon:absolute;right:52px;bottom:0;width:172px;background-image:url(toolbar.png);background-repeat:no-repeat;opacity:0;filter:alpha(opacity=0);transform:scale(0.01);}
舉報(bào)
帶動(dòng)畫效果的工具條,掌握如何用CSS3完成簡(jiǎn)單的動(dòng)畫效果
2 回答有誰可以把他代碼借我看看嗎 就這樣的代碼 我的一直報(bào)錯(cuò)scrollto undefiined
2 回答最后一步代碼在CSS中怎么顯示的,即有hover,又有after的那一步
2 回答scss轉(zhuǎn)css
1 回答老師求代碼
1 回答要想把標(biāo)簽欄放在右邊 怎么改啊??
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-09-12
純css代碼寫的,可以彈出二維碼:
.box {width: 1190px;
?background: #ccc;
? color: #000;
? font-size: 36px;
? text-align: center;
? margin: 0 auto;
}
.toolbar {
? position: fixed;
? bottom: 25px;
? /*left: 50%;
? margin-left: -26px;*/
? /*top: 50%;
? margin-top: -106px;*/
? right: 5px;
}
.toolbar-item {
? position: relative;
? display: block;
? width: 52px;
? height: 52px;
? background: url(../images/toolbar.png) center center no-repeat;
? margin-top: 1px;
? transition: background-position 1s;
}
.toolbar-item-weixin {
? background-position: 0 -798px;
}
.toolbar-item-weixin:hover {
? background-position: 0 -860px;
}
/*.toolbar-item:hover .toolbar-layer {
? opacity: 1;
? filter: alpha(opacity=100);
? transform: scale(1);
}*/
.toolbar-item-weixin:hover .toolbar-layer, .toolbar-item-app:hover .toolbar-layer {
? opacity: 1;
? filter: alpha(opacity=100);
? transform: scale(1);
}
.toolbar-item-feedback {
? background-position: 0 -426px;
}
.toolbar-item-feedback:hover {
? background-position: 0 -488px;
}
.toolbar-item-app {
? background-position: 0 -550px;
}
.toolbar-item-app:hover {
? background-position: 0 -612px;
}
.toolbar-item-top {
? background-position: 0 -674px;
}
.toolbar-item-top:hover {
? background-position: 0 -736px;
}
.toolbar-layer {
? position: absolute;
? right: 46px;
? bottom: -10px;
? width: 172px;
? background: url(../images/toolbar.png) no-repeat;
? opacity: 0;
? filter: alpha(opacity=0);
? transform: scale(0.01);
? /*transform-origin: right bottom;*/
? transform-origin: 95% 95%;
? transition: all 1s;
}
.toolbar-item-weixin .toolbar-layer {
? height: 212px;
? background-position: 0px 0px;
}
.toolbar-item-app .toolbar-layer {
? height: 194px;
? background-position: 0 -222px;
}
?
2015-12-05
我也是用css的,就是做到選擇toolbar-layout私有屬性的時(shí)候就不知道怎么做了。
@charset "utf-8";
/* CSS Document */
.toolbar{position:fixed;left:50%;bottom:5px;margin-left:-26px}
.toolbar-item{display:block;width:52px;height:52px;background-image:url(toolbar.png); background-repeat:no-repeat;margin-top:1px;position:relative;}
.toolbar-item:hover toolbar-layer{opacity:1;transform:scale(1);}
.toolbar-item-weixin{background-position: 0 -798px;}
.toolbar-item-weixin toolbar-layer{height:212px;background-position:0 0;}
.toolbar-item-weixin:hover{background-position: 0 -860px;}
.toolbar-item-feedback{background-position:0 -426px;}
.toolbar-item-feedback:hover{background-position:0 -488px;}
.toolbar-item-app{background-position:0 -550px;}
.toolbar-item-app toolbar-layer{height:194px;background-position:0 -222px;}
.toolbar-item-app:hover{background-position:0 -612px;}
.toolbar-item-top{background-position:0 -674px;}
.toolbar-item-top:hover{background-position:0 -736px;}
.toolbar-layer{positon:absolute;right:52px;bottom:0;width:172px;background-image:url(toolbar.png);background-repeat:no-repeat;opacity:0;filter:alpha(opacity=0);transform:scale(0.01);}