过渡不适用于图像

时间:2013-05-31 20:05:15

标签: css image hover

HTML

  <div id="wrapper">
   <a href="myfile.htm"> <img  id="kohv"  src="Alumine valik\kohv.jpg" /></a>
    <a href="myfile.htm"><img  id="tee"  src="Alumine valik\kann.jpg" /> </a>   
    <a href="myfile.htm"><img  id="kakao"  src="Alumine valik\kakao.jpg" /> </a>   
    <a href="myfile.htm"><img  id="masinad"  src="Alumine valik\Masinad.jpg" </a>    
    <a href="myfile.htm"><img  id="hooldus"  src="Alumine valik\wrench.jpg" />  </a>    
</div>

CSS

#kohv { 
        float:left;
        width:100px;
        margin-top:350px;
        height:100px;
        position:relative;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
    }
    #kohv:hover{ 
         top: -10px;
         padding-bottom:15px;

    }

我的悬停效果不会添加过渡,任何解决方案?我用我的知识尝试了一切,我尝试了多种变体,尝试了谷歌。我真的很想知道我的代码有什么问题。

0 个答案:

没有答案