为你而来

2012年6月5日

javascript:可以用来制作锚点的函数

摘要: 1 window.scrollTo(0,200);//用来制作锚点 阅读全文

posted @ 2012-06-05 20:19 为你而来 阅读(112) 评论(0) 推荐(0) 编辑

javascript:对象的四个宽高属性值

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 width:300px; 7 height:200px; 8 border:dashed 1px green; 9 overflow:auto;10 }11 </style>12 </head>13 <body>14 <div id='box' onclick="fun();">15 < 阅读全文

posted @ 2012-06-05 20:17 为你而来 阅读(154) 评论(0) 推荐(0) 编辑

javascript:鼠标移动改变编辑器高度的特效

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 width:500px; 7 height:5px; 8 border:solid 0px green; 9 position:absolute;10 margin:0px;11 overflow:hidden;12 background-color:#cccccc;13 }14 #box2{15 width:500px;16 height:5px;17 border:... 阅读全文

posted @ 2012-06-05 08:25 为你而来 阅读(290) 评论(0) 推荐(0) 编辑

javascript:用键盘移动盒子代码(键盘事件)

摘要: 1 <html> 2 <head> 3 <title>1</title> 4 <style type='text/css'> 5 #box{ 6 width:100px; 7 height:100px; 8 position:absolute; 9 left:300px;10 top:200px;11 border:solid 1px green;12 }13 </style>14 </head>15 <body>16 <div id='box'>< 阅读全文

posted @ 2012-06-05 06:40 为你而来 阅读(396) 评论(0) 推荐(0) 编辑

导航