当我尝试使用max-width隐藏背景颜色时出现小点

时间:2014-11-16 15:45:03

标签: php html css

我希望摆脱在会话“del”存在之前使用max-width隐藏红色背景时出现的小点。

这是我的php,显示在会话中保存的一个消息:

 <?php
 session_start(); 
 echo "<table id='delpos'>";
 echo "<td id='del'>" . $_SESSION["del"] ."</td> "; 
 echo "</table>"; 
 ?> 

在会话“del”存在之前我需要隐藏它的背景颜色..所以这个css不显示背景颜色。我使用max-width + max-height,但它显示了一个小红点!

 <style>
         #del {
         background-color:red ;
color:white;
max-width:20px; // these hide red background color, but show a tiny red dot! 
max-height:6px; // 


}



#delpos  {
margin-top:60px;
margin-left:30px;
position:absolute;


}

</style>

0 个答案:

没有答案