基于jquery的代码显示区域自动拉长效果
作者:Terry2017.02.07来源:Web前端之家浏览:11146评论:0
下面是
JQuery的实现代码:
$(
document).ready(
function(){
$('
PRe').
hover(
function(){
if($(
this).
width()==520){
$(this).
Animate({width:'800'},400);
$(this).
CSS({
border:'1
px solid #2B99E6'});
}
},
function(){
if($(this).width()==800){
$(this).
animate({width:'520'},400);
$(this).
css({border:'1px solid #555555'});
}
}
);
温馨提示:本文作者系
Terry ,经
Web前端之家编辑修改或补充,转载请注明出处和
本文链接:https://jiangweishan.com/article/svg1486396800916.html
网友评论文明上网理性发言已有0人参与
发表评论: