日期:2014-05-17 浏览次数:20653 次
<html> <head> <link rel="stylesheet" href="css/reset.css" type="text/css"></link> <link rel="stylesheet" href="css/global.css" type="text/css"></link> <script type="text/javascript" src="js/jquery-1.6.1.min.js"></script> <script type="text/javascript"> $(function(){ $('#bTag').hover(function(){ $(this).addClass('hoverb'); },function(){ $(this).removeClass('hoverb'); }); }); </script> <style type="text/css"> .b { position: absolute; right: 10px; top: 7px; width: 0; height: 0; border-width: 4px 4px; border-style: solid; border-color: #666 whiteSmoke whiteSmoke; font-size: 0; line-height: 0; -webkit-transition: -webkit-transform .2s ease-in; -webkit-backface-visibility: hidden; -moz-transition: -moz-transform .2s ease-in; -o-transition: -o-transform .2s ease-in; transition: transform .2s ease-in; } .hoverb { border-color: #666 white white white; -moz-transform: rotate(180deg); -moz-transform-origin: 50% 30%; -webkit-transform: rotate(180deg); -webkit-transform-origin: 50% 30%; -o-transform: rotate(180deg); -o-transform-origin: 50% 30%; transform: rotate(180deg); transform-origin: 50% 30%; filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); top: 3px 9; } </style> </head> <body> <div style="position: relative; width: 100px; height: 50px;"> <b class="b" id="bTag"></b> </div> </body> </html>?