css过渡

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
body
{
font-size:24px;
color:#60F;}
div
{
200px;
height:115px;
background-color:yellow;
border:1px solid black;
}
#aa{
}
#aa:hover
{
background-color:#F39;}

#bb{
transition:1s;
}
#bb:hover
{
background-color:#F39;}

#bg
{
200px;
height:200px;
border:1px solid red;
position:relative;
margin-left:200px;}
#tb
{
position:relative;
left:0px;
top:0px;
transition:0.7s;}
#tb:hover
{
left:-200px;}
#tb:active
{
left:-400px;}
#kuan
{
200px;
height:200px;
border:1px solid blue;
position:relative;
transition:1s;}
#kuan:hover
{
400px;
height:150px;}
</style>
</head>

<body>
背景颜色改变:
<div >这个是加上过渡时间的换背景颜色</div>

css过渡css过渡


<br />
<br />
位置改变:可以直接使用在大图轮播上。不需要引用Jquery就可以实现滑动过渡效果。
<div /></td>
</tr>
</table>
</div>

css过渡


<br />
<br />
<div >这里是宽度、高度改变。原始宽200px,高200px;改变后宽400px,高150px</div>
</body>

css过渡css过渡


</html>