Html中 <tr> 标签的隐藏与显示
时间:2016-03-24 20:06:51
收藏:0
阅读:1242
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>
原文:http://www.cnblogs.com/hailexuexi/p/5316667.html
评论(0)