gpt4 book ai didi

wxwidgets - 如何在 wxWidgets wxHtmlWindow 中设置链接的颜色?

转载 作者:行者123 更新时间:2023-12-05 03:15:44 26 4
gpt4 key购买 nike

wxWidgets 库包括一个简单的 HTML 解析器和查看器,我试图用它来显示一些简单的 HTML。我想将某些链接(指向尚不存在的项目的链接)设置为不同的颜色,或者以其他方式表明需要创建它们,但我没有看到任何明显的方法。

有谁知道这样做的方法吗?

最佳答案

为跨度使用颜色 CSS 样式(类似于 <a href="#"><span style='color:red;'>Red Link</span></a> ).这是类文档中的引述

List of supported styles

wxHTML doesn't really have CSS support but it does support a fewsimple styles: you can use "text-align", "width", "vertical-align" and"background" with all elements and for SPAN elements a few otherstyles are additionally recognized:

color
font-family
font-size (only in point units)
font-style (only "oblique", "italic" and "normal" values are supported)
font-weight (only "bold" and "normal" values are supported)
text-decoration (only "underline" value is supported)

参见:https://docs.wxwidgets.org/3.1/overview_html.html

关于wxwidgets - 如何在 wxWidgets wxHtmlWindow 中设置链接的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13187618/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com