我想要在我的 CSS 中制作表格的选项。一个边框为 5px 纯黑色,一个边框为 0px。目前在 CSS 中我有
#contentcolumn table {
border: 5px solid black;
width: 100%;/*around 700 max for images*/
border-collapse: collapse;
}
这给了我 5 像素的黑色边框,但现在我还需要一个 0 像素的边框。 我试过在 html 中设置 0px 表,但 css 似乎超越了它。这是两个表的 html。
<table>
<tr>
<td align="center"><IMG SRC="images/newsimage/minecraft1.jpg" ALT="mindcraft">
</td>
</tr>
<tr>
<td>Is minecraft still considered an indie game? blah blah blha lbhalbhal
</td>
</tr>
</table>
<!-- Reviews start -->
<!-- Review #1 -->
<table Border='0'>
<tr>
<th rowspan="4" width="30%">Some Image</th>
<td>Link</td>
</tr>
<tr>
<td>By who</td>
</tr>
<tr>
<td>Some info</td>
</tr>
<tr>
<td>comments</td>
</tr>
</table>
两个表都在 div 标签内 <div id="contentcolumn">
如果这很重要?
最佳答案
尽量给border:none
进入样式属性。它将覆盖 css 文件中的 css 属性。 <table style="border:none;">
关于html - css/html 表格边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11877968/