課程
/前端開發
/JavaScript
/JS動畫效果
我總達不到那種效果
2016-04-13
源自:JS動畫效果 7-1
正在回答
<style type="text/css">
*{
margin: 0;
padding: 0;
}
#move{
width: 300px;
margin: 10px auto;
border: 1px solid #ccc;
#move a{
display: inline-block;
width: 58px;
height: 25px;
border: 1px solid #ddd;
border-radius: 3px;
background-color: #fff;
text-align: center;
margin: 10px 17px;
position: relative;
padding-top: 40px;
color: #9c9c9c;
font-size: 12px;
text-decoration: none;
line-height: 25px;
overflow: hidden;
#move a i{
position: absolute;
top: 20px;
left: 0;
width: 100%;
filter: alpha(opacity=100);
opacity: 1;
#move a:hover{
color: #F00;
#move img{
border: none;
</style>
a {
? ? ? ? ? ? display: inline-block;
? ? ? ? ? ? height: 25px;
? ? ? ? ? ? width: 58px;
? ? ? ? ? ? border: 1px solid #ddd;
? ? ? ? ? ? border-radius: 3px;
? ? ? ? ? ? background-color: #fff;
? ? ? ? ? ? margin:10px 17px;
? ? ? ? ? ? text-align: center;
? ? ? ? ? ? position: relative;
? ? ? ? ? ? padding-top: 40px;
? ? ? ? ? ? color: #9c9c9c;
? ? ? ? ? ? font-size: 12px;
? ? ? ? }
? ? ? ? #main a i {
? ? ? ? ? ? position: absolute;
? ? ? ? ? ? top: 20px;
? ? ? ? ? ? left: 0;
? ? ? ? ? ? width: 100%;
? ? ? ? ? ? filter:alpha(opacity=100);
? ? ? ? ? ? opacity: 1;
? ? ? ? #main a:hover {
? ? ? ? ? ? color:#f00;
? ? ? ? i {
? ? ? ? #main img {
? ? ? ? ? ? border: none;
抄了一部分
求一個源代碼,謝謝大神
舉報
通過本課程JS動畫的學習,從簡單動畫開始,逐步深入各種動畫框架封裝
2 回答我想看實例的代碼代碼呢?
3 回答代碼有問題,達不到設置的width和height,幫忙看看好嗎
4 回答能吧代碼發上來么;沒代碼看
1 回答麻煩大家幫忙看看代碼的錯誤!謝謝了
4 回答可以幫忙看下代碼嗎
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2016-04-25
<style type="text/css">
*{
margin: 0;
padding: 0;
}
#move{
width: 300px;
margin: 10px auto;
border: 1px solid #ccc;
}
#move a{
display: inline-block;
width: 58px;
height: 25px;
border: 1px solid #ddd;
border-radius: 3px;
background-color: #fff;
text-align: center;
margin: 10px 17px;
position: relative;
padding-top: 40px;
color: #9c9c9c;
font-size: 12px;
text-decoration: none;
line-height: 25px;
overflow: hidden;
}
#move a i{
position: absolute;
top: 20px;
left: 0;
display: inline-block;
width: 100%;
text-align: center;
filter: alpha(opacity=100);
opacity: 1;
}
#move a:hover{
color: #F00;
}
#move img{
border: none;
}
</style>
2016-04-24
a {
? ? ? ? ? ? display: inline-block;
? ? ? ? ? ? height: 25px;
? ? ? ? ? ? width: 58px;
? ? ? ? ? ? border: 1px solid #ddd;
? ? ? ? ? ? border-radius: 3px;
? ? ? ? ? ? background-color: #fff;
? ? ? ? ? ? margin:10px 17px;
? ? ? ? ? ? text-align: center;
? ? ? ? ? ? position: relative;
? ? ? ? ? ? padding-top: 40px;
? ? ? ? ? ? color: #9c9c9c;
? ? ? ? ? ? font-size: 12px;
? ? ? ? }
? ? ? ? #main a i {
? ? ? ? ? ? position: absolute;
? ? ? ? ? ? top: 20px;
? ? ? ? ? ? left: 0;
? ? ? ? ? ? display: inline-block;
? ? ? ? ? ? width: 100%;
? ? ? ? ? ? text-align: center;
? ? ? ? ? ? filter:alpha(opacity=100);
? ? ? ? ? ? opacity: 1;
? ? ? ? }
? ? ? ? #main a:hover {
? ? ? ? ? ? color:#f00;
? ? ? ? }
? ? ? ? i {
? ? ? ? ? ? position: relative;
? ? ? ? }
? ? ? ? #main img {
? ? ? ? ? ? border: none;
? ? ? ? }
抄了一部分
2016-04-13
求一個源代碼,謝謝大神