用脚本控制三行三列div高度自适应的设置方法,其实不必如此麻烦,只要给父div设置一个固定高度,比如10px,其子div的height:100%就可实现高度自适应,不信,看代码:
head
style
body {
font-family: arial, helvetica, sans-serif;
color: black;
margin: 5px;
background:#ffc url(d:/8767a.gif) repeat-y;
padding: 0;
font:12px;
letter-spacing:1px;
text-align:center;
font:120%;
}
ul
{
list-style-type:square;
list-style-image:url(d:/8767a.gif);
list-style-position:inside;
}
li
{
border:1px green solid;
border-width:0px 0px 1px 0px;
cursor:wai...[ 查看全文 ]