Png icon transparent background color problem with IE6.0.

  1. #1

    Png icon transparent background color problem with IE6.0.

    Transparent png format icon picture can be displayed by IE7.0(or above),FF,etc correctly except IE6.0.

    eg:
    The panel named 'pnl' can display transparent backgournd color on IE7.0, but under IE6.0 the bk color is white which is not our expected.

    <ext:ScriptManager ID="ScriptManager1" runat="server" SourceFormatting="true" />
            <ext:Panel ID="pnl" Icon="Anchor" runat="server"></ext:Panel>

    Have any solution to solve this problem? Transfer all PNG to GIF format or whatelse ?!



  2. #2

    RE: Png icon transparent background color problem with IE6.0.

    Hi Tom.Hanks,

    Correct. Semi-transparent .png files are not supported by IE6.


    The following .htc work-around maybe a good solution for you, see*http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html


    Or, you could remove the value from the .Icon property and set the .IconCls property with a custom css icon class name. With that custom css class you could then specify a .gif.


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: Png icon transparent background color problem with IE6.0.



    Thanks first.

    The above htc works well only like this tag: <img src='a.png'/>, but in inline css.


Similar Threads

  1. Replies: 10
    Last Post: Mar 21, 2011, 9:02 AM
  2. [CLOSED] Window transparent background.
    By alainfo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 17, 2010, 9:24 AM
  3. [CLOSED] the css background-color:Transparent does not work for TextField
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 10, 2010, 3:17 PM
  4. iframe transparent background
    By pintun in forum 1.x Help
    Replies: 1
    Last Post: Nov 05, 2009, 1:50 PM
  5. Change Tab background color or background image
    By georgelanes in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2008, 3:55 PM

Posting Permissions