我只想隐藏 div“可用于仪表板的仪表板块列表”。如果 $check==0
<div id="heading" style="display:block">List of dashboard blocks that are available to your dashboard.</div>
if ($check == 0) {
?>
<tr>
<td> <div class="col-lg-12 col-md-12">All blocks are already added into the dashboard</div></td>
</tr>
<?php }
?>
试试这个,
<?php
if ($check == 0) {
$hideDiv = 'style="display:none"';
}else{
$hideDiv = 'style="display:block"';
}
?>
<div id="heading" <?php echo $hideDiv; ?> >List of dashboard blocks that are available to your dashboard.</div>
<tr>
<td>
<div class="col-lg-12 col-md-12">All blocks are already added into the dashboard</div>
</td>
</tr>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句