我需要减少image size
使用jquery
(而不是div
大小),当我输入mouse
到div
其中包含image
。使用jquery缩小图像大小?
我div
会,
<div class="toolbarIcon" >
<img width="40px" height="40px" src="toolbar/user_login.png"/><label class="toolbarLabel">Login</label>
</div>
CSS
会,
.toolbarIcon {
text-align: center;
border-style: solid;
border-width: 1px;
border-color: #E6E6E6;
width: 60px;
float: left;
}
而且jquery
会,
$(document).ready(function(){
$("#toolbar").corner("5px");
$(".toolbarIcon").corner();
$(".toolbarIcon").mouseover(function(){
$(this).css("background-color","#FFCC80");
});
$(".toolbarIcon").mouseout(function(){
$(this).css("background-color","#EBEBFF");
});
$(".toolbarIcon").mouseup(function(){
$(this).css("background-color","#FFCC80");
});
$(".toolbarIcon").mousedown(function(){
$(this).css("background-color","#E6B85C");
});
});
的design
来自
要,
注:图像的尺寸为changed.How我能实现这个使用Jquery
,当我进入鼠标离子div
。
好的答案是肯定赞赏的。
当你将鼠标放在你的div或者'.css()' – Andrew 2013-05-03 15:17:11