css - 从 HTML 表格中删除 2 个垂直边框 - 如何?

标签 css html

table {
    border-collapse: collapse;
}
table td, table th {
    border: 1px solid black;
    text-align: center;  
	font-size: 18px;  
	font-weight: bold;
	color: black;
}
table tr:first-child th {
    border-top: 0;
}
table tr:last-child td {
    border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
    border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
    border-right: 0;
}
td.left {
	text-align: left;
	font-color: black;
}
td.left2 {
	text-align: left;
	font-color: black;
	border: 0;
vertical-align: middle;
}
td.noborder {
	border: 0; 
}
th.noborder {
	border: 0;
vertical-align: middle;
}
tr.noborder td, th {
	border: 0;
}
th.mini {
	background-color: #3a6179;
	color: #ffffff;
    font-size: 18px;
}
td.workbooks {
	background-color: #15125f;
	color: #ffffff;
	border-left: none;
}
td.salesforce {
	background-color: #019cdc;
	color: #ffffff;
	border-right: none;
#left { 
    display: none; 
    float: left; 
    width: 212px;
}
#right { 
    display: block;
    float: right;
    width: 100%;
<table>
	<tbody>
		<tr class="noborder">
			<td>
				&nbsp;</td>
			<th class="noborder" colspan="2">
				<img src="http://www.workbooks.com/sites/default/files/image/workbooks-logo.png" style="height: 66px; width: 250px;" /></th>
			<th class="noborder" colspan="2">
				<img src="http://www.workbooks.com/sites/default/files/image/SalesForce-Logo-web.png" style="height: 89px; width: 130px;" /></th>
		</tr>
		<tr class="noborder">
			<td class="left2">
				Independant user reviews</td>
			<td colspan="2">
				<img src="http://www.workbooks.com/sites/default/files/image/workbooks-stars_0.png" /></td>
			<td colspan="2">
				<img src="http://www.workbooks.com/sites/default/files/image/Salesforce-stars.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Edition version</td>
			<td class="workbooks">
				CRM Edition</td>
			<td class="workbooks">
				Business</td>
			<td class="salesforce">
				Professional</td>
			<td class="salesforce">
				Enterprise</td>
		</tr>
		<tr>
			<td class="left">
				Typical cost per user per month</td>
			<td class="workbooks">
				£19</td>
			<td class="workbooks">
				£42</td>
			<td class="salesforce">
				£45</td>
			<td class="salesforce">
				£85</td>
		</tr>
		<tr>
			<td class="left">
				Contact Management</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Opportunities, Quotes, Forecasting, Products</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Case Management, Email2case, Web2case</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png"  /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>

		<tr>
			<td class="left">
				Marketing Campaigns</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png"/></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Reports &amp; Dashboards</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png"/></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Outlook Integration (1)</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png"  /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Google Apps Integration</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Mix and Match Licensing (2)</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png"  /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Sales Order Processing</td>
			<td class="workbooks">
				&nbsp;</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				&nbsp;</td>
			<td class="salesforce">
				&nbsp;</td>
		</tr>
		<tr>
			<td class="left">
				Supplier Purchasing</td>
			<td class="workbooks">
				&nbsp;</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				&nbsp;</td>
			<td class="salesforce">
				&nbsp;</td>
		</tr>
		<tr>
			<td class="left">
				Invoicing &amp; Credit Notes</td>
			<td class="workbooks">
				&nbsp;</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				&nbsp;</td>
			<td class="salesforce">
				&nbsp;</td>
		</tr>
		<tr>
			<td class="left">
				Automation Engine</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				&nbsp;</td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Web Services API for Integration</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				&nbsp;</td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Profile and Page Layouts</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				&nbsp;</td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				Sandboxes for Testing &amp; Development</td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="workbooks">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
			<td class="salesforce">
				&nbsp;</td>
			<td class="salesforce">
				<img src="http://www.workbooks.com/sites/default/files/image/tick-new.png" /></td>
		</tr>
		<tr>
			<td class="left">
				G2Crowd Customer Satisfaction Score (3):</td>
			<td class="workbooks" colspan="2">
				96</td>
			<td class="salesforce" colspan="2">
				89</td>
		</tr>
	</tbody>
</table>
<p><!--Comparison table ends here--></p>

我想删除 HTML 表格中的第二条和第四条垂直边框(线)(在 CRM 版本与商业/专业版和企业版之间显示):http://www.workbooks.com/workbooks-vs-salesforce

所以我的表格将如下所示:http://www.workbooks.com/sites/default/files/image/new-lined-table-2.png

抱歉,我无法发布图片,因为我的代表太低。

谢谢

山姆

最佳答案

只需删除垂直边框:

td.workbooks, td.salesforce {
    border-left: none;
    border-right: none;
}

单元格颜色已经巧妙地提供了列的视觉分隔符。

关于css - 从 HTML 表格中删除 2 个垂直边框 - 如何?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28437013/

相关文章:

html - 什么是最喜欢的 HTML + CSS 框架(没有 Javascript)来制作像 iPhone 这样的跨浏览器 UI 元素?

html - 如何用css重现这种布局效果?

javascript - `if` 条件仅适用于遇到的第一个 div

html - 具有多个 div 的 CSS 最小高度 100%

javascript - 单击链接将选择乳头移动到选定的 div ID

html - 如何仅在单击时使用 CSS 更改按钮的颜色?

css - 需要有关 css 的简单帮助

javascript - 如果我将一个 JavaScript 事件绑定(bind)到一个元素,然后删除该元素,该事件会发生什么?

html - wordpress 响应已损坏

html - 从 css 库中删除未使用的样式类或使用 CDN 哪个更好?