我需要爲使用tinyMCE從CMS創建的表格創建一個css類,因此它看起來像下面的樣子。用一些圖片創建垂直表格邊框
http://i.stack.imgur.com/0xcdT.png
一切都只是與cirles是虛垂直分隔符相當瑣碎。其實不知道我該怎麼做。
這是我的atm。只是一條虛線。
http://i.stack.imgur.com/Wp6M6.png
table.testclass {width: 100%; font-size: 1.3em; -webkit-border-vertical-spacing: 1px; -webkit-border-horizontal-spacing: 0px;}
.testclass tr:first-child td:first-child{border:0px; }
.testclass tr:first-child td:last-child{border: 0px;}
.testclass td{ height: 50px; border-bottom: 1px; border-top: 1px; border-color: black; border-style: solid; vertical-align: middle;}
.testclass tr td:first-child {text-align: right; border-left: 1px solid black; padding-right: 0px; border-right: 1px dashed rgba(0, 0, 0, 0.33) !important; width: 33%; padding-right: 25px; }
.testclass tr td:last-child {text-align: left;border-right: 1px solid black; padding-left: 25px;}
這裏的HTML生成:
<table class="testclass" border="0">
<tbody>
<tr>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>assdava</td>
<td>zxcv234vbzx</td>
</tr>
<tr>
<td>23dfasdfadq2</td>
<td>sdfWFASDF</td>
</tr>
</tbody>
</table>
請添加一些代碼或小提琴您已經創建,所以我們可以妥善解決這個問題。 – robooneus
對不起。新增我目前的CSS類 – Glupo
你也可以添加你的HTML嗎?然後,我們可以在小提琴上工作,然後回答。 – robooneus