htmlHow to hide tr: First create an HTML sample file; then define the rows in the HTML table through the tr tag; finally hide it through "
tag in HtmlHide and show the TR tag: block (show) and none (hide) <tr style="display:none">Copy after login[Recommended learning:<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>Copy after loginHTML video tutorial】
The above is the detailed content of How to hide tr in html. For more information, please follow other related articles on the PHP Chinese website!
Related labels:source:php.cnPrevious article:How to solve the Chinese garbled problem of html tag Next article:How to set column width in htmlStatement of this WebsiteThe content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cnLatest Articles by Author
2023-04-24 11:00:01 2023-04-24 10:55:51 2023-04-24 10:52:44 2023-04-23 17:40:51 2023-04-23 17:38:02 2023-04-23 17:34:02 2023-04-23 10:15:45 2023-04-23 10:10:52 2023-04-21 16:01:59 2023-04-21 15:58:01Latest IssuesPX automatic conversion to REM error <style>html { font-size: calc(100vw / 3.75); }...From 2024-04-16 09:34:16004687Related TopicsMore>