我在Excel中使用VBA生成电子邮件。但是,我最终在<h3>
和<ul>
之间出现了烦人的空白区域。我已经查看并尝试了许多不同的解决方案,例如更改填充/边距属性,但我仍然总是留下我的空白区域:
这是我在HTML正文中使用的代码。我确定它一般都很乱,但我一次试图解决一个问题。
.HTMLBody = "<Body style=font-size:11pt;font-family:Calibri>" & _
"Here is the latest status for all ITRC breaks, by product. This report is generated using data pulled on " & Format(LastMonday(Date), "m/d") & ".</body>" & _
RangetoHTML(rng_Summary) & _
"<Body style=font-size:9pt;font-family:Calibri>*allows are excluded from Avg. Age of Breaks calculation</Body>" & _
"<h3><u>MANAGEMENT SUMMARY</u></h3>" & _
"<ul style=margin-top:-30px;font-size:11pt;font-family:Calibri>" & _
"<li><u><b>Total # of Breaks</u></b> - " & " " & str_total_breaks_complete & "</li>" & _
"<li><u><b>Average Age of Breaks</u></b> - " & " " & str_avg_age_complete & "</li>" & _
"<li><u><b># of Breaks > 90 Days</u></b> - " & " " & str_breaks_GT90_complete & "</li>" & _
"<li><u><b>Breaks w/o Remedies >30 Days</u></b> - " & no_rmdy_GT30_count & " " & str_GT30_final & final_list_GT30 & "</li>" & _
"<li><u><b>Overdue Remedies</u></b> - " & overdue_rmdy_count & " " & str_overdue_final & final_list_OD & "</li>" & _
"<li><u><b>Allows Expired</u></b> - " & allows_expired_count & " " & str_exp_final & final_list_AX & "</li>" & _
"<li><u><b>Top CPs by Avg. Break Age</u></b>" & final_list_TopCPs & "</li>" & _
"</ul>" & _
"<img src=cid:" & Replace(ageChart_img, " ", "%20") & ">" & "<img src=cid:" & Replace(totalBreak_img, " ", "%20") & ">"
.Display 'CHANGE THIS to .Display/.Send if you want to test/send
答案 0 :(得分:0)
将$ref = $_SERVER['HTTP_REFERER'];
$url1 = parse_url($ref);
$url2 = parse_url("http://example.com/page.html");
if ($url1['host'] != $url2['host']){
//do this
die("Hotlinking not permitted");
}
echo "Executing code here";
添加到您的margin-bottom: 0;
。
h3