【发布时间】:2014-05-21 16:37:19
【问题描述】:
我在 TWebbrowser 中加载网页,但网页显示不正确,我无法更改编码。
页面加载后如何在 Delphi 中更改内联样式?
这是我要更改的代码:
<td width="200px" valign=top style="background-color:#576299; height:800px;">
到这里:
<td width="200px" valign=top style="display:none; background-color:#576299; height:800px;">
我首先认为我可以使用这种方法注入一个 css 样式表:CSS and TWebbrowser delphi 但没有要覆盖的类,我可以为所有表设置样式,但页面上还有其他我想要的表显示。
有没有办法搜索我正在寻找的 html 并将其替换为其他内容?
【问题讨论】:
-
页面在IE中加载是否正常?
标签: html css delphi twebbrowser