如何在 Hotmail 中的 html 电子邮件中向 TABLE 或 DIV 添加边框?
是的,html 电子邮件很糟糕,但我必须向我的客户列表发送 html 新闻通讯
。他们中的大多数使用 Hotmail
。
是否可以在 /
元素周围添加
CSS
边框?
不起作用BORDER
Yes, html emails are bad but I have to send html newsletter
to my a list of clients. Most of them use Hotmail
.
Is it possible to add a CSS
border around a <table>
/ <div>
element?
<div style="border:1px solid #000000;">BORDER</div>
doesn't work
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
看起来最好的选择是在表中创建表:
Hotmail 只是不喜欢边框......
Looks like the best option is creating a table within a table:
Hotmail just doesn't like borders...
尝试使用
try to use
尝试使用
是否有效
try to use
if it works
避免指定“black”等通用名称或十六进制颜色的缩短版本(如“#000”,这并不总是有效)的一种方法是单独指定每个元素,如下所示:
One way to avoid specifying for a generic name like "black" or a shortened version of the hex color (like "#000", which does not always work) is to specify each element seperately like so: