![]() | 1 Sivan 2013-09-02 15:12:53 +08:00 当然可以 |
![]() | 3 alay9999 2013-09-02 15:17:50 +08:00 li:hover ul{ } |
![]() | 4 alay9999 2013-09-02 15:18:59 +08:00 li ul{ display:none; } li:hover ul{ display:block; } |
![]() | 6 guchengf 2013-09-02 16:05:06 +08:00 CSS3 Transition ,具体方法Google |
![]() | 8 guchengf 2013-09-02 16:23:59 +08:00 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link rel="stylesheet" href="a.css"> </head> <body> <div> <ul id="a">111 <li>aaa</li> <li>bbb</li> <li>ccc</li> </ul> </div> </body> </html> #a li{ list-style: none; background: black; color: white; height: 0px; -moz-transition: height 2s ease; -webkit-transition: height 2s ease; -o-transition: height 2s ease; transition: height 2s ease; } #a:hover li{ height: 20px; } 上面是HTML,下面是CSS,你看是不是你要的效果 |
![]() | 14 Kaiyuan 2013-09-02 20:11:29 +08:00 ![]() 单纯滑动只有在导航在最顶部的时候可以,要是不是导航在最顶部的话会「露馅」的。 ![]() 我当年做了一个3d的。厚颜的卖$3 http://gum.co/suID ,结果没人买,哈哈。 很多网站都有教css3的特效 http://tympanus.net/codrops/ 这个网站有大量的css3、html5、js 特效,可以找到你想要的。 http://www.webdesignerdepot.com/ http://webdesign.tutsplus.com/ http://www.smashingmagazine.com/ http://css-tricks.com/ |