#div1{
width:100px;
height:150px;
background:red;
position:absolute;
right:0;
bottom:0;
}
window.onscroll=function (){
var oDiv=document.getElementById('div1');
var s...
分类:
Web程序 时间:
2014-07-23 13:33:26
阅读次数:
216
#div1{
width:100px;
height:150px;
background:red;
position:absolute;
right:0;
bottom:0;
}
window.onscroll=function (){
var oDiv=document.getElementById('div1');
var s...
分类:
Web程序 时间:
2014-07-23 13:33:17
阅读次数:
286
如果只为div添加一个定时器的话,在多个div变宽的时候会发生问题,但是如果为每个div添加一个定时器,那么就可以实现多个物体变宽,具体代码如下:
div{
width:100px;
height:50px;
background:red;
margin:10px;
}
window.onload=function (){
var aDiv=docume...
分类:
Web程序 时间:
2014-07-23 13:15:59
阅读次数:
220
修改/etc/init/tty.conf文件将exec /sbin/mingetty $TTY改为exec /sbin/mingetty --autologin root $TTY或者修改/etc/inittab文件将3改为1参考网址:http://zhumeng8337797.blog.163.c...
分类:
系统相关 时间:
2014-07-23 11:34:36
阅读次数:
366
For the one pass solution... first I tried to build white\blue from red, but not working anyway. Then I referred someone' code, to build red\blue from...
分类:
其他好文 时间:
2014-07-22 22:42:54
阅读次数:
212
做网页设计时经常要用到各种形状的图形,对于规则的图形很简单,但是对于不规则的图形,一般我们都是用图片,今天就在这里教大家怎样用css代码写出各种规则不同的图形1.正方形#square {width: 100px;height: 100px;background: red;}2.长方形#rectang...
分类:
Web程序 时间:
2014-07-22 22:41:14
阅读次数:
326
标签的伪类样式一组专门的预定义的类称为伪类,主要用来处理超链接的状态。超链接文字的状态可以通过伪类选择符+样式规则来控制。伪类选择符包括:总: a 表示所有状态下的连接 如 a{color:red}① a:link:未访问链接 ,如 a:link {color:blue}② a:visited:已访...
分类:
其他好文 时间:
2014-07-22 22:40:54
阅读次数:
178
基本思路:样式
#div1{
width:200px;
height:200px;
background:red;
position:absolute;//不加绝对定位,就跑不起来
top:50px;
left:0px;
}
var timer=null;
function startMov...
分类:
Web程序 时间:
2014-07-22 22:38:54
阅读次数:
194
select to_char(d,'yyyymmdd') from (select (trunc( to_date('2014-01-01','yyyy-mm-dd') + (rownum - 1)) ) d from dual connect by rownum<=365)where to_cha...
分类:
其他好文 时间:
2014-07-22 22:34:55
阅读次数:
242
CSS中有7种选择器:1、元素选择器例如:h1{font-size:12px;}h2,h3,h4{font-size:23px;}helloworld...2、类选择器:例如:.important{background-color:red;}/*只有包含important 和 warning两个类的...
分类:
其他好文 时间:
2014-07-21 23:39:34
阅读次数:
517