WebClientºÍWebRequest»ñÈ¡html´úÂë
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>µÃµ½ÍøÒ³Ô´´úÂë</title>
</head>
<body MS_POSITIONING="GridLayout">
<form id="aspNetBuffer" method="post" runat="server">
<div align="center" style="FONT-WEIGHT: bold">µÃµ½ÈÎÒâÍøÒ³Ô´´úÂë</div>
<asp:TextBox id="UrlText" runat="server" Width="400px">http://dotnet.aspx.cc/content.aspx
</asp:TextBox>
<asp:Button id="WebClientButton" Runat="server" Text="ÓÃWebClientµÃµ½" OnClick="WebClientButton_Click"></asp:Button>
<asp:Button id="WebRequestButton" runat="server" Text="ÓÃWebRequestµÃµ½" OnClick="WebRequestButton_Click"></asp:Button>
<asp:TextBox id="ContentHtml" runat="server" Width="100%" Height="360px" TextMode="MultiLine">
</asp:TextBox>
</form>
</body>
</html>
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Net;
using System.Text;
public partial class _Default : System.Web.UI.Page
{
private string PageUrl = "";
protected void Page_Load(object sender, EventArgs e)
{
}
Ïà¹ØÎĵµ£º
HTML Parser is a Java library used to parse HTML in either a linear or nested fashion. Primarily used for transformation or extraction, it features filters, visitors, custom tags and easy to use JavaBeans. It is a fast, robust and well tested package.
code download£ºhttp://sourceforge.net/pr ......
Struts HTML±êÇ©
<html:html>±êÇ©
ÊôÐÔµÄ×÷Óãº
lang£º ֵΪtrueʱ£¬¾Í¸ù¾Ý´æ´¢ÔÚHttpSessionÖеÄLocale¶ÔÏóÀ´Êä³öÍø ҳʹÓõÄÓïÑÔ¡£Èç¹û²»´æÔÚsession»òsessionÖÐûÓÐLocale¶ÔÏó£¬ ¾ÍÒÔHttpÇëÇóÍ·ÖеÄAccept£languageÊôÐÔÀ´ÉèÖÃÊä³öÓïÑÔ¡£Èç¹û &nbs ......
ʾÀý£º´ËDIVΪ¹Ì¶¨¶¨Î»¶ÔÏó
ҪʹHTMLÔª¼þ¶¨Î»ÓÚä¯ÀÀÆ÷µÄij¸ö¹Ì¶¨Î»Ö㬶ø²»Ëæ¹ö¶¯Ìõ¹ö¶¯£¬ÓÃÒÔÏÂCSS´úÂë¼´¿É£¬¿ç¸÷¸öÖ÷Á÷ä¯ÀÀÆ÷£º POSITION: fixed! important; TOP: 100px; _position: absolute; _top: 40; _left: 100¡£
ʾÀý¼ûÓұ߻Ƶ׺ì×Ö¿é¡£ ......
Ò»¸ö¼òµ¥µÄÏÂÀ²Ëµ¥£¬Ö÷Ҫ˵Ã÷CSSÖÐposistionµÄ×÷Óá£
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"& ......
ÎÊÌ⣺htmlÔªËØÈçºÎ¹¹³ÉÎĵµ
½â¾ö·½°¸£ºhtmlÊÇÑϸñµÄÔªËØ²ã´ÎǶÌ׽ṹ£¬ÔªËØ¿ÉÒÔ»¥ÏàǶÌ×£¬µ«ÊDz»ÄÜÖØµþ¡£Html½«ÔªËØ»®·ÖΪ3¸öÖ÷ÒªÀࣺ½á¹¹»¯ÔªËØ£¬¿é×´ÔªËØ£¬ÄÚÁªÔªËØ¡£
n ºËÐĵĽṹ»¯ÔªËØ£º<html><head><body>£¬<head>ÖзŵÄÊǹØÓÚÎĵµµÄÐÅÏ ......