开发者

Firefox displays 3 columns in a table, IE8 only 2

Would love some help here... Firefox displays the last column in the table (an image they click on to edit their email address, it's a link), and IE8 displays nothing for the last column (doesn't even appear to display a column!) I've left out other rows in the table, but similar stuff happens.

Anyone know why?

<table class="profile-display">
  <tr>
    <td style="text-align: right; color: red;"> Email address: </td>
    <td class="profile-content"> <?php echo("$evar"); ?> </td>
    <td> <a href="profile_change.php?edit=13"  
         <img src="../images/writegreen.png" class="profile-edit" alt="Edit" 
          title="Edit Email Address"
   borde开发者_运维问答r="0" />
         </a>
    </td>
  </tr>
</table>


Your <a> tag is missing its >. That will cause a browser to not recognize the end of the tag until the first > it sees, which is the end of the img tag. Frankly, I'm surprised that Firefox shows the img.

Edit: Other common causes of this problem are missing quotes and misspelled tags.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜