css靜態濾鏡 + A:Hover_經驗交流

來源:互聯網
上載者:User
css靜態濾鏡 + A:Hover 的效果
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <!-- Author: Hutia --> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <title>WU XIN</title> <style> * { margin:0px; padding:0px; } .i1 { width:64px; border:0px none #888; margin:0px; } .a0 { filter:Gray() Alpha(Opacity=40); display:block; height:64px; width:64px; } .a0:hover, .a0:active { filter:Alpha(Opacity=100); display:block; height:64px; width:64px; } .a1 { border:1px solid #999; } .a1:hover { border:1px solid gold;} .a2 { border:1px solid #999; } .a2:hover { border:1px solid green; } .a3 { border:1px solid #999; } .a3:hover { border:1px solid blue;} .a4 { border:1px solid #999; } .a4:hover { border:1px solid red;} .a5 { border:1px solid #999; } .a5:hover { border:1px solid silver;} .a6 { border:1px solid #999; } .a6:hover { border:1px solid black;} .a7 { border:1px solid #999; } .a7:hover { border:1px solid #FEE;} </style> </head> <body> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
然後配合上兩行 JS, 做成這樣,依然 IE Only
Step2:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <!-- Author: Hutia --> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <title>WU XIN</title> <style> * { margin:0px; padding:0px; } #main { height:198px; width:66px; overflow:hidden; } .i1 { width:64px; border:0px none #888; margin:0px; } .a0 { filter:Gray() Alpha(Opacity=40); display:block; height:64px; width:64px; } .a0:hover, .a0:active { filter:Alpha(Opacity=100); display:block; height:64px; width:64px; } .a1 { border:1px solid #999; } .a1:hover { border:1px solid gold;} .a2 { border:1px solid #999; } .a2:hover { border:1px solid green; } .a3 { border:1px solid #999; } .a3:hover { border:1px solid blue;} .a4 { border:1px solid #999; } .a4:hover { border:1px solid red;} .a5 { border:1px solid #999; } .a5:hover { border:1px solid silver;} .a6 { border:1px solid #999; } .a6:hover { border:1px solid black;} .a7 { border:1px solid #999; } .a7:hover { border:1px solid #FEE;} </style> </head> <body> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
繼續努力,加上磁性效果............就是測試久了會看的頭暈.......
Step3:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <!-- Author: Hutia --> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <title>WU XIN</title> <style> * { margin:0px; padding:0px; } #main { height:198px; width:66px; overflow:hidden; } .i1 { width:64px; border:0px none #888; margin:0px; } .a0 { filter:Gray() Alpha(Opacity=40); display:block; height:64px; width:64px; } .a0:hover, .a0:active { filter:Alpha(Opacity=100); display:block; height:64px; width:64px; } .a1 { border:1px solid #999; } .a1:hover { border:1px solid gold;} .a2 { border:1px solid #999; } .a2:hover { border:1px solid green; } .a3 { border:1px solid #999; } .a3:hover { border:1px solid blue;} .a4 { border:1px solid #999; } .a4:hover { border:1px solid red;} .a5 { border:1px solid #999; } .a5:hover { border:1px solid silver;} .a6 { border:1px solid #999; } .a6:hover { border:1px solid black;} .a7 { border:1px solid #999; } .a7:hover { border:1px solid #FEE;} </style> </head> <body> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
上一個效果滑鼠動的快了會很頭暈.......又做了一個磁性效果
Step4:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <!-- Author: Hutia --> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <title>WU XIN</title> <style> * { margin:0px; padding:0px; } #main { height:198px; width:66px; overflow:hidden; } .i1 { width:64px; border:0px none #888; margin:0px; } .a0 { filter:Gray() Alpha(Opacity=40); display:block; height:64px; width:64px; } .a0:hover, .a0:active { filter:Alpha(Opacity=100); display:block; height:64px; width:64px; } .a1 { border:1px solid #999; } .a1:hover { border:1px solid gold;} .a2 { border:1px solid #999; } .a2:hover { border:1px solid green; } .a3 { border:1px solid #999; } .a3:hover { border:1px solid blue;} .a4 { border:1px solid #999; } .a4:hover { border:1px solid red;} .a5 { border:1px solid #999; } .a5:hover { border:1px solid silver;} .a6 { border:1px solid #999; } .a6:hover { border:1px solid black;} .a7 { border:1px solid #999; } .a7:hover { border:1px solid #FEE;} </style> </head> <body> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
然後再加上一些不知所謂的特效,讓這個東東有點動感(小新:看我的動感光波,BBBBB........) -_-

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <!-- Author: Hutia --> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <title>WU XIN</title> <style> * { margin:0px; padding:0px; } #main { height:198px; width:66px; overflow:hidden; } #pointer { display:none; position:absolute; width:3px; overflow:hidden; } .i1 { width:64px; border:0px none #888; margin:0px; } .a0 { filter:Gray() Alpha(Opacity=40); display:block; height:64px; width:64px; } .a0:hover, .a0:active { filter:Alpha(Opacity=100); display:block; height:64px; width:64px; } .a1 { border:1px solid #999; } .a1:hover { border:1px solid gold;} .a2 { border:1px solid #999; } .a2:hover { border:1px solid green; } .a3 { border:1px solid #999; } .a3:hover { border:1px solid blue;} .a4 { border:1px solid #999; } .a4:hover { border:1px solid red;} .a5 { border:1px solid #999; } .a5:hover { border:1px solid silver;} .a6 { border:1px solid #999; } .a6:hover { border:1px solid black;} .a7 { border:1px solid #999; } .a7:hover { border:1px solid #FEE;} </style> </head> <body> </body> </html>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
  • 相關文章

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.