»ñÈ¡HTMLÔ´Âë - .NET¼¼Êõ / C#
ΪʲôÎÒ»ñÈ¡http://pub.cnipr.com/pubpisfts/viewinfo/viewinfo.do?method=particular&ft=1&sqh=200810018741.7&apno=101220157&databaseflag=%u53D1%u660E%u516C%u5F00
Õâ¸öÒ³ÃæµÄHTMLÔ´ÂëΪ¿Õ
ÎҵijÌÐòÊÇWebRequest objRequest = WebRequest.Create(this.URL);
WebResponse objResponse = objRequest.GetResponse();
StreamReader oSR = new StreamReader(objResponse.GetResponseStream());
string strContent = oSR.ReadToEnd();
Çë´ó¼Ò°ï棬ÔõôŪҲŪ²»³öÀ´
http://pub.cnipr.com/pubpisfts/viewinfo/viewinfo.do?method=particular&ft=1&sqh=200810018741.7&apno=101220157&databaseflag=%u53D1%u660E%u516C%u5F00 ÕâÒ³Ãæ²»ÄÜ·ÃÎÊ°¡
Õâ¸öÒ³ÃæÉñ¾²¡£¬ÓеÄʱºòÊǺõÄÓеÄʱºòÓÖ²»ºÃÁË¡£
ºÜ²»Îȶ¨£¬ÅªµÄÎÒÒ²¾«Éñ½ôÕÅÁË¡£
ÊDz»ÊÇËùÓеÄÒ³Ã涼¿ÉÒԲɼ¯µ½HTMLÔ´´úÂëÄØ£¬´æ²»´æÔÚÍøÒ³¼ÓÃÜ°¡£¬ÒòΪÎÒ»ñÈ¡µ½ÓеĴúÂ붼ÊÇÂÒÂë¡£
ÊÔÊÔÕâ¸ö·½·¨£º
C# code:
/// <summary>
/// »ñµÃÒ³ÃæµÄhtml´úÂë
/// </summary>
/// <param name="url">Ò³ÃæµØÖ·</param>
protected string getHtml(string url)
{
string html = "";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Accept = "*/*";
HttpWebResponse response = null;
Stream stream = null;
Ïà¹ØÎÊ´ð£º
¿ÉÄÜÒòΪ¹¤×÷µÄÔÒò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......
ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ
javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test
ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......
ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£
·Ö²»¹»ÔÙ¼Ó¡£
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
display:inline-block;
overflow:hidden;£¨ÍøÂçÉϲéÕÒÊÇÓ°²ØÒç³ö£¬µ«ÊDzâÊÔÆðÀ´¸Ð¾õ²»Ì«Ã÷°×£©
position:relative;£¨¾ø¶Ô¶¨Î»£¬²»ÖªµÀ¶Ô²»¶Ô£©
position:absolute;
ÕâËĸöÊôÐÔÔÚCSSÀïÃæ³öÏÖƵÂʱȽϸߣ¬¸ßÊÖÖ¸µã ......
¡°¾²Ì¬·½·¨ºÍ¾²Ì¬±äÁ¿´´½¨ºóʼÖÕʹÓÃͬһ¿éÄڴ棬¶øʹÓÃʵÀýµÄ·½Ê½»á´´½¨¶à¸öÄÚ´æ."
Õâ¾ä»°¶ÔÂð£¿
ÔÚ¶àÏ̺߳ÍÒì²½³ÌÐòÖ´ÐÐʱ£¬Ê¹Óþ²Ì¬·½·¨»á³öÏÖÒì³£Âð£¿
ÀàµÄ¶à¸öʵÀý,Æä´úÂëÔÚÄÚ´æÖÐÒ²Ö»ÊÇÒ»·Ý,ÿ¸öʵÀ ......