html - HTML 中的下划线文本

标签 html css internet-explorer-7 html-table internet-explorer-6

我想写下图最简单的例子

enter image description here

我的示例应该适用于 ie6、7、8、9 等。所以我不能使用 float 或任何有用的东西。我做了 jsFiddle使用表格

<table width="500px">
    <tr>
        <td width="45px"><span>e-mail</span>
        </td>
        <td align="center"> <div style="border-bottom: 1px solid;">test@gmail.com</div></td>
    </tr>
    <tr>
        <td width="45px"></td>
        <td align="center"> <span>(email)</span>
        </td>
    </tr>
</table>

,但底部(电子邮件)与该行有边距。 enter image description here

我希望一切都像我的第一张图片一样。谢谢

最佳答案

这个我试过了。 检查这个jsFiddle link

<table width="500px" style="padding:0px; border-spacing:1px">
<tr>
    <td width="45px" style="padding:0px"><span>e-mail</span>

    </td>
    <td align="center" style="padding:0px"> test@gmail.com <hr noshade style="border-top:1px; -webkit-margin-before: 0; -webkit-margin-after: 0; -webkit-margin-top: 0; -webkit-margin-bottom: 0;"/> </td>

</tr>
<tr>
    <td width="45px" style="padding:0px"></td>
    <td align = "center" style = "margin-top:0px; padding:0px">(email)</td>
</tr>

关于html - HTML 中的下划线文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27520925/

相关文章:

javascript - 滚动界面 CSS-在黑色背景上更改颜色

HTML5 离线 "Application Cache Error event: Manifest fetch failed (-1)"

javascript - JavaScript 中的 href 递增、递减

html - polymer 忽略纸卡边距

javascript - 如果 Div 为空,隐藏它并改变另一个 div 的宽度

css - 为什么 IE7 隐藏我的溢出,据我所知,它包含的所有元素都将溢出设置为可见?

javascript - .addClass 不会覆盖 native 单元格背景颜色

javascript - 加载完所有内容后如何将javascript添加到JBrowse

Internet Explorer 7 上的 jQuery 切换。位置和高度问题

css - IE7 div 异常