.yc {
display:inline-block;
cursor:pointer;
font-family:Arial;
font-size:15px;
text-decoration:none;
text-shadow:0px 1px 0px #2f6627;
position: relative;
border: 1px solid #e8e8e8;
border-radius: 6px;
padding: 12px 14px 12px;
margin-bottom: 25px;
}
.yc:hover {
background-color:#5cbf2a;
}
.yc:active {
position:relative;
top:1px;
}
</style>
<div class="spoiler">
<div class="spoilerheader">
<input type="button" class="yc" value="点击展开/折叠隐藏内容" onClick="n =
this.parentNode.parentNode.lastChild;if(n.style.display == 'none') {n.style.display
= 'block';} else {n.style.display = 'none';} return false;"/>
</div><div class="spoilerbody" style="display: none;border-style:groove;padding-right:5px; ">
<table><td>
测试新版折叠
</td></table>
</div></div> 23333
页:
1
[2]