[求助]为什么html代码不能用?
为什么这段代码不能再狐表上用,其他却能用?
<style>
.gray {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: gray;
</style>
全部代码
Dim hdm As String
hdm = "<html> <style> .gray { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: grayscale(100%); filter: gray; </style> <body> <h4><img src=""http://image.zhangxinxu.com/image/blog/201208/2012-08-19_155221.jpg"" class=""gray"" width=""40"" height=""40"" />春晓</h4> <p> 春眠不觉晓, 处处闻啼鸟. 夜来风雨声, 花落知多少. </p> <p>注意,浏览器忽略了源代码中的排版(省略了多余的空格和换行).</p> </body> </html>"
'赋值网页代码生成网页
Dim web = Forms("html").controls("webbrowser1").basecontrol
web.documentText =hdm
[此贴子已经被作者于2019/5/13 10:42:39编辑过]