我正在努力突出显示电子邮件中的部分文字。消息在变量中分配,稍后通过START TRANSACTION; -- Begin a transaction
INSERT INTO categories
VALUES
(
5
,'Electric'
);
IF ROW_COUNT() > 0 THEN -- ROW_COUNT() returns the number of rows updated/inserted/deleted
SET duplicate_entry_for_key = TRUE;
COMMIT; -- Finalize the transaction
ELSE
SET duplicate_entry_for_key = False;
--You can ROLLBACK the transaction also - Revert all changes made before the transaction began
END IF
添加。
以下是代码,我需要以黄色突出显示"请在5个工作日内恢复" 。没有HTML背景标签适用于我。
.HTMLbody = message_variable
使用的Outlook是2013
答案 0 :(得分:1)
我使用了"<span style='background:yellow;mso-highlight:yellow'>"
突出显示的文字</span>
msg_var = "<font face=Arial> <p style=font-size:10pt>" & _
"Dear Sir/ Madam, <br />" & _
"<br />" & _
"MANY LINES OF TEXT" & _
"<font color=red>" & "<span style='background:yellow;mso-highlight:yellow'>" & _
"Please revert within 5 working days" & _
"</font>" & "</span>" & _
"Best Regards, <br />" & _
"</font>"