0

there is a white space in my html and I found it strange.

when I'm trying to load page with ajax this white space doesn't appear. but when I include that page inside html, a "" appears .

<div id="last_exam" class="white_board fleft">
    <?php if(@!empty($ypage['last_exam'])) @include_once($ypage['last_exam']); else { ?>
        <div class="sdiv" style="height:138px;">

        </div>
    <?php } ?>
</div>

sdiv is a tag inside my second page.

my html debugger:

enter image description here

I tried to use .sdiv:before to hide that but nothing happened.

any Similar case?

4

1 回答 1

1

尝试这个

<div id="last_exam" class="white_board fleft">
<?php
if(@!empty($ypage['last_exam']))
@include_once($ypage['last_exam']);
else
echo '<div class="sdiv" style="height:138px;"></div>';
?>
</div>
于 2013-08-11T06:59:53.510 回答