求一个 默认式关闭的js+css 伸缩代码!!!

来源:百度知道 编辑:UC知道 时间:2024/06/19 12:14:38
<style type="text/css">
<!--
*{
margin:0;padding:0;
}
body{
background-color:#fff;font-size:12px;text-align:left;
}

#topNews{
width: 300px;
margin: 60px auto 0 auto;
text-align:left;
padding-bottom:10px;
background: #fff url(attachments/month_0702/070210/new_bottom.gif) bottom no-repeat;
}
#newsList {
width:100%;
height:100px;
list-style:none;
padding-top:5px;
background: #fff url(attachments/month_0702/070210/new_bg.gif) repeat-y;
}
#newsList li{
text-indent:16px;
font-size:12px;
line-height: 20px;
float: left;
width:280px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
#topNews h1{
background: #fff url(attachments/month_0702/070210/new_top.gif) no-repeat;
height:33px;
font-size:12px;
}
#btnOpen{
margin-top:15px;
margin-left:

fimg=document.getElementById("btnOpen");
document.getElementById("newsList");
f(flag
display="none";
mg.src="attachments/month_0702/070210/open2.gif";
flag=false;
}else{
style.display="";
"attachments/month_0702/070210/open1.gif";
flag=true;
不太好弄!!!! 累的 眼花了!!!!
试试 找 专业的吧!