flex 3 手风琴组件和圆角 [英] flex 3 accordion component and rounded corners

查看:30
本文介绍了flex 3 手风琴组件和圆角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Flex 中使用了手风琴组件,但似乎无法让标题具有圆角.页脚圆没有问题,但页眉仍然是正方形,有什么建议吗?

Im using the accordion component in Flex and cant seem to get the header to have rounded corners. The footer rounds no problem but the header remnains square, any suggestions?

推荐答案

这里是 Doug McCune 的深入示例 展示了如何自定义 Accordion 控件,附带源代码和解释,他在其中做了类似的事情.虽然具体细节取决于您要执行的操作,但基本上您需要重新设置手风琴项标题的按钮和/或选择外观的外观.

Here's an in-depth example from Doug McCune showing how to customize the Accordion control, with accompanying source code and explanation, in which he does something similar. While the specifics will depend on what you're trying to do, essentially you need to re-skin the button and/or selection skins of the accordion-item header.

蒙皮可能有点棘手,其中一件看起来应该比实际更容易的事情(我个人发现使用 Flash 蒙皮对于除最简单的情况外的所有情况都是一种痛苦;我更喜欢这样做它在代码或标记中),但是如果您花一点时间处理示例中的代码,我相信您会看到发生了什么并能够应用于您的项目.希望能帮到你——祝你好运!

Skinning can be a bit tricky, one of those things that seems like it ought to be easier than it is (and personally I find using Flash for skinning to be a pain for all but the simplest situations; I much prefer to do it in code or markup), but if you spend a little time with the code in the example I'm sure you'll see what's going on and be able to apply to your project. Hope it helps -- good luck!

这篇关于flex 3 手风琴组件和圆角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆