我有一个带有两个 TD 标签的表。首先,我放置一个图像。在第二个中,我放置了一个“评论”框。它是一个 div 框。
问题是,我想让这个 div 框恰好位于第二个 td-tag 中图像的右侧。它不应该高于图像。因此,如果 div 中的内容过多,则应该有一个滚动条。
到目前为止,我有这个:
CSS代码:
#picKom {
    position:absolute;
    width: 350px;
    height: 100%;
    float: left;
    top: 0px;
    right: 0px;
    bottom:0px;
    overflow-y: auto;
    overflow-x: hidden;
    color: #ffffff;
    border: solid 1px #000000;
  }
和这个:
        <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"".$newWidth."px\" bgcolor=\"".$colorTwo."\">
          <tr valign=\"top\">
            <td>
              <a href=\"images/Gallerie/".$bild_name."\" target=\"_blank\"><img src=\"images/Gallerie/".$bild_name."\" width=\"".$width."\"></a>
            </td>
            <td>
              <div style=\"position:relative; height:100%;\">
                <div id=\"picKom\">
                  MYCOMMENTBOX
                </div>
              </div>
             </td>
           </tr>
         </table>
在谷歌浏览器中它运行得很好。但是在 Firefox 中,评论框不在正确的位置。它不在 td 标签中。它位于窗口的右侧。
截图:http ://www.pic-upload.de/view-21307692/google-chrome.png.html
感谢你们。
