回答

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> 
    .... 
相关问题