2013-01-18 53 views
0

我正在創建一封通過電子郵件發送的新聞通訊,在這封新郵件中,我嘗試使用<fieldset></fieldset><legend></legend>標籤,當我在瀏覽器上給背景顏色工作時,當我在Outlook 2007和2010上看到它不起作用時,就是我的代碼。展望2007年或2010年不支持背景屬性

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<body> 
    <fieldset style="border-left: 1px solid #99CCFF; border-right: 1px solid #99CCFF; 
     border-bottom: 1px solid #99CCFF; border-top: 1px solid #99CCFF; padding-left: 10px; 
     padding-right: 10px; background-color:#CD853F; height:300px; width:300px;"> 
     <legend style="font-weight: bold; text-transform: uppercase;">Warranty Items</legend> 
     <span style="padding-bottom: 300px;">** Content here ***</span> 
    </fieldset> 
</body> 
</html> 
+0

究竟哪些方法無效?標籤本身或背景顏色? –

回答

1

沒用過<fieldset><legend>標籤,但你需要使用<body>標籤或MS VML讓Outlook中顯示的背景圖像。這可能對您有用:emailbg.net