HTMLで行を非表示にする方法を知りたいのですが。のCSSメソッドを使用するstyle="empty-cells : hide;"
と機能するようですが、<h4>
タグが空のテーブルに含まれている場合、行は非表示になりません。
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
</head>
<body>
<form name="form_simple" action=" " method="get">
<table border="1px" style="empty-cells : hide;">
<tr><td><h4>Empty cells should not have any borders around them</h4></td></tr>
<tr><td></td></tr>
<tr><td><h4>Empty cells should not have any borders around them.</h4></td></tr>
<tr><td><h4>Empty cells should not have any borders around them.</h4></td></tr>
</table>
</form>
</body>
</html>
style="empty-cells : hide;"
で動作しますが<tr><td></td></tr>
、ではありません<tr><td><h4></h4></td></tr>