JS´´½¨HTML±êÇ©
<script type="text/javascript">
var count = 0;
function Add(){
count += 1;
var File1 = document.getElementById("file1");
var div = document.createElement("div");
var btnJiaHao = document.createElement("input");
btnJiaHao.type = "button";
btnJiaHao.value = "+";
btnJiaHao.id = count;
btnJiaHao.onclick = function(){
jiahao(this);
}
var inputTxt = document.createElement("input");
inputTxt.type = "text";
inputTxt.name = "txt"+count;
inputTxt.id = "txt_"+count;
inputTxt.value = "0";
var btn = document.createElement("input");
btn.type = "button";
btn.value = "-";
btn.id = count;
btn.onclick = function(){
jianhao(this);
}
div.appendChild(btnJiaHao);
div.appendChild(inputTxt);
div.appendChild(btn);
File1.appendChild(div);
}
function jianhao(t){
var txt_id = "txt_" + t.id;
var v = document.getElementById(txt_id).value;
v = v - 1;
document.getElementById(txt_id).value = v;
}
function jiahao(t){
var txt_id = "txt_" + t.id;
var v = document.getElementById(txt_id).value;
v = parseInt(v) + 1;
document.getElementById(txt_id).value = v;
}
</script>
<input type="button" name="button" value="Ôö¼Ó" onclick="Add();" />
<div id="file1"></div&g
Ïà¹ØÎĵµ£º
¸ù¾ÝÎÒ×î½üµÄһЩʵ¼ùÒÔ¼°ÔÚºÍһЩ¶ÁÕß½øÐйØÓÚHTML±í¸ñµÄʹÓÃÎÊÌ⹵֮ͨºó£¬¾ö¶¨Ð´ÕâÆªÎÄÕ¡£×ܵÄÀ´Ëµ£¬ÎÒ×¢Òâµ½ÓÉÓÚÎóµ¼ÐÔÐÅÏ¢£¬ËûÃǶÔÓÚtableµÄʹÓÃÓÐÖÖÏÈÈëΪÖ÷µÄÑá¶ñ¡£ÊÂʵÉϺܶàÈË»á˵”ÎÒ¿´µ½ÓÀÔ¶²»Ó¦¸ÃʹÓñí¸ñ”µÄ˵·¨£¬µ«ÊÇÕâ¾ø¶ÔÊÇ´íÎóµÄ£¡Õâ¸ö½¨ÒéÖ»ÊÇÕë¶ÔʹÓÃHTML±í¸ñÀ´¶¨ÒåÍøÒ³ ......
HTMLÓïÑÔÓï·¨´óÈ«
<! - - ... - -> Åú×¢
<!> ÅÜÂíµÆ
<marquee>...</marquee>ÆÕͨ¾í¶¯
<marquee behavior=slide>...</marquee>»¬¶¯
<marquee behavior=scroll>...</marquee>Ô¤Éè¾í¶¯
<marquee behavior=alternate>...</marquee>À´»Ø¾í¶¯
& ......
¿ÉÒÔ˵¼¸ºõÿ¸ö×ö¹ýWeb¿ª·¢µÄÈ˶¼Îʹý£¬µ½µ×ÔªËØµÄIDºÍNameÓÐÊ²Ã´Çø±ð°¢£¿ÎªÊ²Ã´ÓÐÁËID»¹ÒªÓÐNameÄØ?!
¶øÍ¬ÑùÎÒÃÇÒ²¿ÉÒԵõ½×îclassicalµÄ´ð°¸£ºID¾ÍÏñÊÇÒ»¸öÈ˵ÄÉí·ÝÖ¤ºÅÂ룬¶øName¾ÍÏñÊÇËûµÄÃû×Ö£¬IDÏÔÈ»ÊÇΨһµÄ£¬¶øNameÊÇ¿ÉÒÔÖØ¸´µÄ¡£
nameÔÀ´ÊÇΪÁ˱êʶ֮Ó㬵«ÊÇÏÖÔÚ¸ù¾Ý¹æ·¶£¬¶¼½¨ÒéÓÃidÀ´±êÊ¶ÔªËØ¡£
ÒÔÏÂÖ»ÄÜÓ ......
Ò»°ãµÄ¿Í»§ÔÚ¸Õ¿ªÊ¼ÍùÍù²»Á˽â×Ô¼ºµ½µ×ÏëҪʲôÑùµÄÈí¼þ£¬Ëæ×ÅÏîÄ¿µÄÒ»²½²½½øÐУ¬ËûÃÇ»á¸ù¾Ýʵ¼ÊÍê³ÉµÄ²¿·ÖÖð½¥ÀíÇåÍ·Ð÷£¬Ìá³ö½øÒ»²½µÄÒªÇó¡£
ÓÐÒ»ÖÖ˵·¨¾ÍÊÇ£¬“ÕæÕýµÄÐèÇóÊÇÔÚµÚÒ»¸ö°æ±¾Íê³ÉµÄʱºò²úÉúµÄ¡£”Óû§ÔÚ¿´µ½ÍêÕûµÄ³ÉÆ·ºó£¬²ÅÊ×´ÎÀí˳ÁË×Ô¼ºµÄ˼·£¬È»ºóÔÚ³ÉÆ·µÄ»ù´¡É϶Թ¦ÄܽøÐÐɾ¼õ¡£
ΪÁËÈÿͻ§ ......
¿òÏßÖÆ×÷³£ÓôúÂë
´úÂë
º¬Òå
<table>...</table>
½¨Á¢±í¸ñ£¬ËùÓÐµÄÆäËû±ê¼Ç¶¼ÐèÒªÔڴ˱ê¼ÇÖÐ
<table width=* heigth=*></table>
É趨±í¸ñ¿í¶ÈwidthºÍ¸ß¶Èheight£¬ÊôÐÔÖµ¿ÉÒÔʹÓõãÊý£¬È磺width=50£¬Ò²¿ÉÒÔʹÓðٷֱȣ¬È磺width=50%¡£
<table bgcolor=*></ta ......