日期:2014-05-17  浏览次数:20643 次

js和css属性对照表
http://www.php100.com/html/webkaifa/DIV_CSS/2009/0418/2357.html
<!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>
.dividv{width:800px; height:500px; float:left; border:1px solid #FF0000; overflow:hidden;}
.dividv img{max-width:800px; word-break:break-all; width:expression(this.width>800?"800px":this.width+"px");}
.dividv table{width:100%; max-width:800px; word-break:break-all;}
li{
position:relative;
float:left;
height:25px;
}
li a {
padding-bottom:0;
height:20px;
}
li a:hover
{
 
}
</style>
<script>
function acl()
{
	
	 
	var v=document.getElementsByTagName("a")[0].style;
	v.lineHeight="100PX";//使得两行之间变大。在一行时,用paddingRight使得之间距离变大
	//alert(v.paddingBottom);//paddingBotto
	 
}
function findS()
{
 var v=document.getElementsByTagName("a")[0].style;
 var str="";
 for(i in v)
 {
 str+=i;
  str+="<br/>";
 }
  document.write(str);
}
</script>
</head>

<body>
	 
	<ul>
		<li>

		<a href="#" onclick="acl()">xiayi</a></li>
		<li>here</li>
	</ul>
	 
	
</body>
</html>