求解关于使用animate来控制隐藏,展开效果 现在我这边写了个右键菜单,简单的display不能满足用户的需求。然后我就用jquery的animate来控制动画效果,但是有个问题,怎么写才能让菜单从右下角那点,向左上动画显现出来?左上往右下倒是很好写,但是右下往左上不知道怎么写。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html> <head> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script type="text/javascript"> $(function(){ $('#showDiv').click(function(){ $('#div1').animate({ width : '200px' , height : '200px' }); }); }); </script> </head> <body> <button id="showDiv">显示DIV</button> <div id="div1" style="position:absolute;bottom:0px;right:0px;border:1px solid;height:0px;width:0px;"> dsfasfasdfasdf </div> </body></html> 谢谢,犯2了 一直想着left top, 没想到其他的 新手一个简单的问题。。不知道哪里出错了 求助:div的背景图片覆盖另个div 鼠标移上去样式修改求助 请教判断几个文本框是否输入? 求等边三角形面积 使用javascript如何设置一个窗口总是在最上面? 三个关于 select 的小问题[100分] 不得呀朋友!小弟再问!给小弟指条路吧,详细点好吗?比如举个例之类的 请教Java Script 能否将xml的数据 ,插入到SQL SERVER中 。(null) SCRIPT438: 对象不支持“attachEvent”属性或方法 easyui onloadsucess方法 js实现复选框的全选与反选
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(function(){
$('#showDiv').click(function(){
$('#div1').animate({
width : '200px' ,
height : '200px'
});
});
});
</script>
</head>
<body>
<button id="showDiv">显示DIV</button>
<div id="div1" style="position:absolute;bottom:0px;right:0px;border:1px solid;height:0px;width:0px;">
dsfasfasdfasdf
</div>
</body>
</html>