English 中文(简体)
What is the HEX code for Transparent color?
原标题:
  • 时间:2009-11-26 04:47:26
  •  标签:
  • colors
  • hex

I want to set color as transparent. In RGB 255 0 255 with alpha 5 may work as transparent, But How to get it in HEX ?

What is the HEX code for Transparent color

最佳回答

There is no such thing; transparency is done via another channel.

问题回答

It depends on the format, some systems require RRGGBB, which doesn t include alpha.

Some have their format as AARRGGBB, so your provided color would be 05FF00FF.

Conversely, some have their format as RRGGBBAA, thus your provided color would be FF00FF05.

For me it worked using the format #AARRGGBB so the one working for me was #1C00ff00. Give it a try, because I have seen it working for some and not working for someone else. I am using it in CSS.

You can also use #00000000

I found that after using #1C00ff00 which also worked

You can use rgba(255,0,255,1)

 <svg class="svg_element" style="margin-top:0px;margin-left:560px">
        <circle cx="25" cy="25" r="20" fill="rgba(128, 0, 128, 0.75)" 
            stroke="rgba(0, 255, 0, 0.25)" stroke-width="10"/>
        <circle cx="75" cy="25" r="20"
            fill="rgba(0, 255, 0, 1)"
            stroke="rgba(0, 0, 255, 0.1)" stroke-width="10"/>
        <circle cx="125" cy="25" r="20"
            fill="rgba(255, 255, 0, 0.75)"
            stroke="rgba(255, 0, 0, 0.25)" stroke-width="10"/>
 </svg>

here is fiddle





相关问题
C#: Integer value being returned as hexadecimal in VS 2008

I have a c# code snippets where i am creating a list of my custom class objects.When i am taking the count of that,its showing me a hexadecimal value in the quickwatch window. alt text http://img509....

What is the HEX code for Transparent color?

I want to set color as transparent. In RGB 255 0 255 with alpha 5 may work as transparent, But How to get it in HEX ? What is the HEX code for Transparent color

How to test a byte against a hex value?

I want to test if the byte I read from a data file is 0xEE, what should I do? I tried if (aChar == 0xEE) but doesn t seems working.

need help writing hexadecimals to an exe file

can somone tell me how to write these hexadecimals to an exe file while still having it exec 4D 5A 50 00 02 00 00 00 04 00 0F 00 FF FF 00 00 B8 00 00 00 00 00 00 00 40 00 1A 00 00 00 00 00 00 00 00 ...

how to show hex code char?

i have a file contains numbers like FB8E,FB8F,FB90 on each line. i want in my program to load this file and take each line and print the character corresponded to that number/line. for expamle, my ...

Storing hexadecimal values as binary in MySQL

I was thinking about how I m storing passwords in my database : appropriately salted SHA1 strings in a CHAR(40) field. However, since the character data in there is actually just a hex representation ...

热门标签