码迷,mamicode.com
首页 > 移动开发 > 详细

CSS3实现文字过渡移动

时间:2017-05-23 10:14:10      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:pad   pre   skin   微信   ges   images   tran   -o   对象   

1.在需要移动的对象上加上a标签,并定义CSS

<a><img src="/skin/images/ico-weixin.png" /><span>微信平台</span></a>

2、定义CSS

#solution a{
    -webkit-transition:all 1s ease ;
    -moz-transition:all 1s ease ;
    -o-transition:all 1s ease ;
    transition:all 1s ease ;
}
#solution a:hover{
    padding-right:10px;
}

  

CSS3实现文字过渡移动

标签:pad   pre   skin   微信   ges   images   tran   -o   对象   

原文地址:http://www.cnblogs.com/firstcsharp/p/6892611.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!