回答

6

在的system.xml

<?xml version="1.0"?> 
<config> 
    <tabs> 
     <magepal translate="label" module="magepal"> 
      <label><![CDATA[<div style="position: absolute;"><img id="magepal_block" src="" alt="" border="0" /></div>&nbsp;<script>$('magepal_block').src = SKIN_URL + "images/magepal/magepal.png";</script>]]></label> 
      <sort_order>400</sort_order> 
     </magepal> 
    </tabs> 

穿戴圖像(尺寸158×18)

/skin/adminhtml/default/default/images/magepal/magepal.png

3

一個更清晰的解決方案是將一個css類添加到該選項卡,然後使用在adminhtml佈局定義中定義的css文件的樣式。

<?xml version="1.0"?> 
<config> 
    <tabs> 
     <magepal translate="label" module="magepal"> 
      <label>MagePal</label> 
      <sort_order>400</sort_order> 
      <class>admin-system-config-magepal</class> 
     </magepal> 
    </tabs> 
    .... 
相關問題