如何在Web浏览器控件中更改所选文本的颜色? [英] how to change the selected text color in web browser control?

查看:84
本文介绍了如何在Web浏览器控件中更改所选文本的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

webBrowser1.Document.ExecCommand("FontColor", false, Color.Red);




它不起作用.....
如果我使用此代码进行编译,则表示它显示错误参数异常处理错误"
值不在预期范围内.




it does not working.....
if i compile with this code means it shows a error "Argument exception handled error"
Value does not fall within the expected range.

推荐答案

尝试使用StackOverFlow的此链接:转到第7个答案

http://stackoverflow.com/questions/2562297/c-sharp-webbrowser- control-not-applying-css [ ^ ]
Try this link of StackOverFlow: Go to 7th Answer

http://stackoverflow.com/questions/2562297/c-sharp-webbrowser-control-not-applying-css[^]


这篇关于如何在Web浏览器控件中更改所选文本的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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