C#.netÖÐÓÃWinForm½ÓÊÕhtmlÒ³ÃæÏûÏ¢µÄ³ÌÐò
Ê×ÏÈдһ¸öÒ³Ãæ£¬ÉÏÃæÒª·ÅÒ»¸öButton
<html>
<head>
<title></title>
</head>
<body>
<input id="Button1" type="button" value="button" />
</body>
</html>
½«Æä±£´æÔÚHomePage.htmÖУ¬
Ö®ºóÎÒÃǽ¨Ò»¸öWinForm£¬
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SXT.Frame.Ctrler.Test
{
public partial class HtmlUi : Form
{
public HtmlUi()
{
InitializeComponent();
this.webBrowser1.Navigate("D:\\SXT\\bin\\Debug\\HomePage.htm");//±¾µØÎļþ·¾¶
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
HtmlDocument htmlDoc = this.webBrowser1.Document;
HtmlElement btnElement = htmlDoc.All["Button1"];
if (btnElement != null)
{
btnElement.Click += new HtmlElementEventHandler(btnElement_Click);
}
}
void btnElement_Click(object sender, HtmlElementEventArgs e)
&n
Ïà¹ØÎĵµ£º
ͻȻһ´Î£¬ÏëÊäÈëÉÏϱ꣬editor²»Ö§³Ö£¬ÓÚÊǺõËѵÃÒÔ϶«¶«¡£ ÓеÄHTML±êÇ©Äã¿ÉÄÜ´ÓδʹÓùý£¬²»ÊÇÒòΪÄãǷȱѧϰ¾«Éñ£¬¶øÊÇËüÃÇȷʵÓô¦²»´ó¡£Èç¹ûÄãÓÐ̽Ë÷¾«Éñ£¬ÄǾͽÓ×ÅÍùÏ¿´°É¡£ µÚÒ»¸ö£ºabbr »ò acronym
ÕâÁ½¸ö±êʶÊÇÒ»»ØÊ£¬Ö÷ÒªÊÇÓÃÓÚһЩӢÓïµÄËõд£¬µ±Äã°ÑÊó±êÒÆÉÏÈ¥µÄʱºò£¬Äã»á·¢ÏÖ»á³öÏÖÒ»¸öСÌáʾÀ´Ì ......
1£©
XMLÊÇÒ»ÏîÈÈÃŵļ¼Êõ¡£ËüÖ®ËùÒÔÄܹ»ÒýÆðÈËÃǵÄÐËȤ£¬Ò»¸öÖ÷ÒªµÄÔÒòÔÚÓÚËüÊ®·ÖµÄ¼òµ¥£¬ÈËÃÇ¿ÉÒÔºÜÈÝÒ×µØÀí½âºÍʹÓÃËü¡£Ã¿Ò»¸ö³ÌÐòÔ±¶¼ÄÜÇáÒ׵ؿ´¶®Ò»¸öXMLÎļþ£¬Àí½âËü°üº¬µÄÄÚÈÝ¡£
.NETÖаüº¬Á˺ܶàÖ§³ÖXMLµÄÀ࣬ÕâЩÀàʹµÃ³ÌÐòԱʹÓÃXML±à³Ì¾ÍÈçͬÀí½âXMLÎļþÒ»Ñù¼òµ¥¡£ÔÚÕâÆªÎÄÕÂÖУ¬ÎÒ½«¸ø³öÕâÑùµÄÒ»¸öÀàµÄʹÓÃʾ ......
ÓÐ關html´°體¿ò¼ÜµÄ問題£¬Èç¹ûÏëÒª實現ÔÚÒ»個畫ÃæÖзָ體£¬並ÇÒͨ過點擊ÆäÖеÄÒ»個´°體£¬鏈½Ó內ÈÝÖÁͬһ個畫ÃæÖеÄÁíÒ»個´°體¡£¾ÍÐèҪʹÓÃ<frameset>與<frame>µÄ ......
ÏÈÀ´¿´¶Î´úÂ룺
document.domain = 'ray.com';
Õâ¶Î´úÂëµ½µ×ÊÇʲôÒâË¼ÄØ£¿
Ê×ÏÈ£¬ÎÒÃÇÀ´¿´ÏÂHTML DOM ¹ØÓÚÕâ¸öµÄ˵Ã÷£º
domain of type DOMString, readonlyThe domain name of the server that served the document, or null if the server cannot be identified by a domain name.
Õâ¶Î»°µÄÒâ˼ÊÇÕâ¸öÖµÊÇDO ......