【发布时间】:2019-02-28 16:44:01
【问题描述】:
这是我的代码
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="font-size:40px;line-height:2px;color:red;">◖</td>
<td style="width:80px;height:30px;background-color:red;"></td>
<td style="font-size:40px;line-height:2px;color:red;">◗</td>
</tr>
</table>
我想要做的是将我的表格内容显示为下面的div(带边框半径)
<div style="width:120px;height:30px;background-color:red;border-radius:50px;"></div>
我必须使用这样的表格,因为此代码将在不支持 border-radius 的 Outlook 桌面客户端的 html 电子邮件中使用。
【问题讨论】:
-
你的问题是什么?
-
对不起,小提琴错了,我已经更新了我的问题。问题是,半圆和矩形之间有一个空格。
-
是的,我知道半圆本身有空间,但是有什么办法吗?喜欢使用带有负值的填充?这个我试过了,还是不行。