TR标签的隐藏与显示:block(显示)和none(隐藏)

<tr  style="display:none">

<tr id="sample"
style="display: <s:if test="sample == 1">block</s:if><s:else>none</s:else>">
<td>
sample
</td>
</tr>
<script type="text/javascript">
function changeTR(selectedValue)
{
var tr1 = document.getElementById("sample"); if (selectedValue == 0)
{
tr1.style.display = 'block';
}
else
{
tr1.style.display = 'none';
}
}
</script>
05-11 19:31