html - 表格边框左侧和底部

标签 html html-table

我需要按照下面的示例创建边框。

HTML:

<table width="770">
  <tr>
    <td>picture (border only to the left and bottom ) </td>
    <td>text</td>
  </tr>
  <tr>
    <td>text</td>
    <td>picture (border only to the left and bottom) </td>
  </tr>
</table>

最佳答案

您可以使用这些样式:

style="border-left: 1px solid #cdd0d4;"  
style="border-bottom: 1px solid #cdd0d4;"
style="border-top: 1px solid #cdd0d4;"
style="border-right: 1px solid #cdd0d4;"

有了这个你想要你必须使用

<td style="border-left: 1px solid #cdd0d4;border-bottom: 1px solid #cdd0d4;">  

<img style="border-left: 1px solid #cdd0d4;border-bottom: 1px solid #cdd0d4;"> 

关于html - 表格边框左侧和底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14535856/

相关文章:

php - 如果表行的列属性之一为 true,则设置表行的样式

javascript - 渐进式输入占位符

python - 创建一个从网站抓取文件的 python 程序

JavaScript 导致所有子菜单成为一个链接而不是移动设备上的单个链接(错误)

html - 如何在 pandas dataframe.to_html() 中设置单元格对齐方式

jquery - 按行号和列号选择表格中的任意单元格

html - IE6 - 带有类和 ID 的 DIV

php - 结合 PHP 和 HTML 的首选方式?

html - 这可以在没有表格或 JavaScript 的情况下完成吗 : 100% height wills remaining height of container

html - 如何使用 CSS 右对齐表格的最后两列