Flex 3 - 自定义皮肤按钮中的阴影
我很难去除按钮控件中某种类型的阴影。
这是按钮:
给我带来麻烦的按钮是“缩放器”按钮。正如您所看到的,边界不是直的。我假设有某种渐变/阴影或其他东西是从默认皮肤继承的。
翻转时,会出现同样的问题,但不太明显:
我正在使用 css 对其进行换肤。
这是按钮的声明:
<mx:Button id="zoomButton"
paddingLeft="7" paddingRight="7"
height="24" textAlign="center" fontSize="10"
buttonMode="true"
styleName="intZoomButtonStyle"
icon="{Assets.MISC_ZOOM_ICON_SMALL}"/>
这是 css:
.intZoomButtonStyle{
fill-colors: #ffffff, #ffffff;
fill-alphas: 1, 1;
border-color: #ffffff;
shadow-color: #ffffff;
theme-color: #ffffff;
corner-radius: 0;
}
谁能帮我解决这个问题?
谢谢 :)
I'm having a hard time removing some type of shadow in a button control.
Here's the button:
The button that's giving me trouble is the "zoomer" one. As you can see, the borders are not straight. I assume that there's some kind of gradient/shadow or sth that's inherited from the default skin.
On rollover, the same issue appears but it's a little bit less visible:
I'm using css to skin it.
Here's the button's declaration:
<mx:Button id="zoomButton"
paddingLeft="7" paddingRight="7"
height="24" textAlign="center" fontSize="10"
buttonMode="true"
styleName="intZoomButtonStyle"
icon="{Assets.MISC_ZOOM_ICON_SMALL}"/>
And here's the css:
.intZoomButtonStyle{
fill-colors: #ffffff, #ffffff;
fill-alphas: 1, 1;
border-color: #ffffff;
shadow-color: #ffffff;
theme-color: #ffffff;
corner-radius: 0;
}
Could anyone help me on this one?
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想这可能会帮助您Style Explorer进行进一步验证
~~ ~~~~~~编码愉快~~~~~~~~~~
I think this might help you Style Explorer for the further verification
~~~~~~~~Happy coding~~~~~~~~~~
我最终使用了图像来为按钮设置皮肤。这就是 CSS 的外观:
blank.jpg 只是一个白色的方形图像。
瞧!
它仍然困扰着我,无法使用简单的 css 来做到这一点,但是,找到了可行的东西......
I finally used an image to skin the button. This is how the css looks:
blank.jpg is simply a white squared image.
And voilà!
It still bothers me not being able to do that using a simple css but well, found sth that works...