最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jQuery實(shí)現(xiàn)感應(yīng)鼠標(biāo)動(dòng)畫(huà)效果自動(dòng)伸長(zhǎng)的輸入框?qū)嵗?/h1>
 更新時(shí)間:2015年02月24日 10:46:45   作者:代碼家園  
這篇文章主要介紹了jQuery實(shí)現(xiàn)感應(yīng)鼠標(biāo)動(dòng)畫(huà)效果自動(dòng)伸長(zhǎng)的輸入框,實(shí)例分析了jQuery鼠標(biāo)事件及animate動(dòng)畫(huà)效果的使用技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了jQuery實(shí)現(xiàn)感應(yīng)鼠標(biāo)動(dòng)畫(huà)效果自動(dòng)伸長(zhǎng)的輸入框。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:

復(fù)制代碼 代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery實(shí)現(xiàn)感應(yīng)鼠標(biāo)動(dòng)畫(huà)效果自動(dòng)伸長(zhǎng)的輸入框</title>
<script type="text/javascript" src="/images/jquery-1.4.2.min.js"></script>
<style type="text/css">
body
{
margin:0; padding:0; font-size:12px;
}
a:link {
color:#1553a9; text-decoration: none;
}
a:visited {
text-decoration:none; color: #1553a9;
}
a:hover {
text-decoration:none; color: #f46662;
}
a:active {
text-decoration: none; color:#f46662;
}
#main
{
width:500px; margin:0 auto; margin-top:100px;
}

#de
{
display:block;width:100px; height:30px; line-height:30px; float:right; border:#b7b7b7 1px solid; padding-left:5px; border-right:0;
}
#go
{
width:30px; float:right;height:22px; border:#b7b7b7 1px solid; border-left:0; padding-top:10px; padding-left:15px; background-color:#464646; cursor:pointer; color:#FFFFFF;
}
</style>
<script type="text/javascript">
$(function(){

$("#de").mouseover(function(){
 $("#de").animate({"width":"250px"});
}).mouseout(function(){
 $("#de").animate({"width":"100px"});
});
});
</script>
</head>
<body>
<div id="main">
<div id="ss"><div id="go">→</div><input type="text" id="de"/></div>
</div>
</body>
</html>

希望本文所述對(duì)大家的jQuery程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論

家居| 双鸭山市| 石首市| 河津市| 墨竹工卡县| 诏安县| 古蔺县| 汤原县| 新野县| 仪征市| 广水市| 綦江县| 从化市| 海丰县| 巴东县| 汪清县| 商水县| 光泽县| 阳泉市| 吉首市| 读书| 福贡县| 隆回县| 扎赉特旗| 巴马| 长乐市| 西乌| 咸丰县| 贡觉县| 隆尧县| 海伦市| 宣城市| 兴安县| 广安市| 吐鲁番市| 中西区| 通许县| 绥德县| 兴隆县| 星座| 渭源县|