擅长:python、mysql、java
<p>试试这个</p>
<pre><code>email_content = """
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>html title</title>
<style type="text/css" media="screen">
table{
background-color: #AAD373;
empty-cells:hide;
Border:5px solid red;
}
td.cell{
background-color: white;
}
</style>
</head>
<body>
<table style="border: blue 1px solid;">
<tr><td class="cell">Cell 1.1</td><td class="cell">Cell 1.2</td></tr>
<tr><td class="cell">Cell 2.1</td><td class="cell"></td></tr>
</table>
</code></pre>