关于IHTMLDocument3的网页填表问题,我用的是mfc里的webbrowser控件。 20
我只会通过网页元素的id或name往编辑框里填内容,如图1.怎么通过网页元素的样式即classname来填内容呢,如图2。愁死我了,都几天了,还没进展。求大神解决啊,必重...
我只会通过网页元素的id或name往编辑框里填内容,如图 1. 怎么通过网页元素的样式即classname来填内容呢,如图2。愁死我了,都几天了,还没进展。 求大神解决啊,必重谢,只有20个金币,但可以微信红包。
IHTMLDocument3这个接口只有getElementById,getElementByname但是没有getElementByClassname,好愁人啊 展开
IHTMLDocument3这个接口只有getElementById,getElementByname但是没有getElementByClassname,好愁人啊 展开
展开全部
如果你是用在 IE9 以些版本可转用
IHTMLDocument7-》getElementsByClassName
IHTMLDocument7 Interface
getElementsByClassName --- Gets a collection of objects that are based on the value of the class attribute.
getElementsByClassName method
Gets a collection of objects that are based on the value of the class attribute.
Parameters
v [in]
Type: BSTR
A BSTR value that specifies the value of a class attribute.
Standards information
HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 3.1.1
IHTMLDocument7-》getElementsByClassName
IHTMLDocument7 Interface
getElementsByClassName --- Gets a collection of objects that are based on the value of the class attribute.
getElementsByClassName method
Gets a collection of objects that are based on the value of the class attribute.
Parameters
v [in]
Type: BSTR
A BSTR value that specifies the value of a class attribute.
Standards information
HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 3.1.1
追问
不行啊
IHtmlElementCollection这个怎么用
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询