十六进制翻译
我下载了一个具有可更改设置的 Flash 播放器。我正在尝试更改播放列表的颜色。问题是......它使用的是我以前从未见过的十六进制。现有的十六进制是 0xdadada(例如,十六进制的样式),当我尝试将其更改为 #E1E1E1(通常是浅灰色)时,它全是黑色。
有谁知道有一个图表或网站可以将 Oxdadada 风格的十六进制转换为 #E1E1E1 风格的十六进制吗?
I downloaded a flash player that has changeable settings. I am trying to change the color of the playlist. Problem is...it's using hex's I have never seen before. The existing hex is 0xdadada (for example, the style of hex) and when I tried to change it to #E1E1E1,which is normally a lighter grey, it came out all black.
Does anyone know of a chart or site that translates Oxdadada style hexs to the #E1E1E1 style hex?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这些应该是一样的。 0xE1E1E1 和 #E1E1E1 含义相同。 区别在于,在 Flash/Flex 样式表中您需要使用
#
前缀,否则您的颜色将不会显示,而在其他地方则鼓励您使用0x。
顺便说一句,0x 前缀表示数值,样式颜色的十六进制值是 uint 数据类型。
Those should be the same. 0xE1E1E1 and #E1E1E1 mean the same thing. The difference is that in a Flash/Flex stylesheet you need to use the
#
prefix or your colors won't show up, while elsewhere you are encouraged to use0x
.0x prefix, by the way, signals a numerical value, and the hexadecimal value for style colors is a
uint
data type.它们是相同的,除了一个以
0x
开头,另一个以#
开头。无需输入
#E1E1E1
,只需输入0xE1E1E1
。有可能软件正在寻找以
0x
开头的值,当它看到以#
开头的值时,它默认为数字值零,这当然是显示为黑色。They are the same thing, except for one starting with
0x
and the other starting with#
.Instead of entering
#E1E1E1
just enter0xE1E1E1
.Chances are that the software was looking for a value starting with
0x
, and when it saw yours starting with#
it defaulted to a numeric value of zero, which of course would be shown as black.也许它需要一个以
0x
开头的颜色字符串。您是否尝试过0xe1e1e1
?Perhaps it expects a color string starting with
0x
. Did you try just0xe1e1e1
?可能是相同的,但尽量保持相同的格式。
但是,格式可能会颠倒。例如,HTML 格式
#RRGGBB
可能需要转换为0xBBGGRR
,但这取决于软件实现的具体情况。Probably is the same, but try to keep the same formatting.
However it's possible that the format may be reversed. For instance the HTML format
#RRGGBB
may need to be translated to0xBBGGRR
, but that will depend on the specifics of the software implementation.