我在这里需要什么 CSS 选择器?
我试图将“标题”文本置于“警报”控件的中心。我现在正在使用以下 CSS:
mx|Alert{
text-align: center;
}
问题是上面的代码也集中了我的警报内容,而不仅仅是标题文本。我需要什么选择器才能仅访问警报控件的标题?
编辑:
我正在使用 4.x SDK 和 Spark。
代码:
Alert.Show();
I'm trying to center the title text on my Alert control. I'm using the following CSS right now:
mx|Alert{
text-align: center;
}
The problem is that the above code centers my alert content as well, not just the title text. What selector do I need to access just the title of the alert control?
Edit:
I'm using the 4.x SDK and Spark.
Code:
Alert.Show();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
titleStyleName
声明一个可用于设置标题样式的 CSS 类,然后向该类添加样式:如果我没记错的话,应该适用于 Spark。
Use
titleStyleName
to declare a CSS class that can be used to style the title, then add styles to that class:Should work for Spark if I'm not wrong.
看一下 标题样式名称。
Take a look at titleStyleName.