当前第2页 返回上一页
1 | <tr style= "display:none" >
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <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>
|
【推荐学习:HTML视频教程】
以上就是html怎么隐藏tr的详细内容,更多文章请关注木庄网络博客!
返回前面的内容
相关阅读 >>
Html center标签怎么用
Html中stroke是什么意思?
<iframe>是什么?Html中iframe标签的用法详解
Html/css怎么让input禁止输入
怎么设计自己的网页
Html中自定义菜单随着滚动条滑动的代码实现
浏览器中5种常用的事件解析
Html 简介
Html怎么隐藏文字
在Html中怎样可以用超链接打开新窗口并且控制窗口属性
更多相关阅读请进入《Html》频道 >>
人民邮电出版社
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者
转载请注明出处:木庄网络博客 » html怎么隐藏tr