您的位置:首頁> 實例代碼> HTML實例

checkbox name屬性值注意點

2019-7-10 22:41| 作者: admin| 查看: 4688| 評論: 0|來自: 螞蟻部落

關于復選框checkbox基本用法可以參閱HTML input checkbox 復選框一章節。

BENWENDANDUJIESHAOYIXIAnameSHUXINGYIXIEZHUYIDIAN,KENENGHUIDUICHUXUEZHEZAOCHENGYIDINGDEKUNRAO。

nameSHUXINGYONGYUMINGMINGDANGQIANFUXUANKUANG,GENGZHONGYAODEZUOYONGSHI,TIJIAOBIAODANHOU,HOUTAITONGGUOnameSHUXINGZHIJIESHOUSHUJU。

XIAMIANTONGGUOYIDUANJIANDANDEDAIMASHILIJINXINGFENXI:

[HTML] 純文本查看 復制代碼运行代码
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="http://glbcf.cn/" />
<title>螞蟻部落</title>
<style>
input{
  width:15px;
  height:15px;
  border:1px dotted blue;
}    
</style>    
</head>
<body>
具備的技能:
<input type="checkbox" name="a"/> 前端
<input type="checkbox" name="b"/> 后端
<input type="checkbox" name="c"/> PS
</body>
</html>

秒速赛车打不开SHANGMIANDAIMAJUYOUSANGEFUXUANKUANG,MUDESHIXUANZHONGSUOJUBEIDEJINENG。

秒速赛车打不开JIUYIC#HOUTAIJIESHOUSHUJUWEILI,DAIMAPIANDUANRUXIA:

[C#] 純文本查看 復制代碼
String jineng = Request.Form["a"];

SHANGSHUDAIMAKEYIJIESHOUnameSHUXINGZHIWEI"a"DEFUXUANKUANGDEZHI,HUANYOULINGWAILIANGGEFUXUANKUANGDEZHIMEIYOUJIESHOU。

秒速赛车打不开NANDAOMEIYIGEFUXUANKUANGDOUYAOTONGGUOSHANGSHULEISIDAIMAJIESHOUYICIMA,CIZHONGFANGSHIBUNENGSHUOBUXING,DANSHIRENHESHIJIXIANGMUZHONGDOUBUHUIZHEMEYONG。

ZHIYAOJIANGTONGYILEIFUXUANKUANGDEnameSHUXINGZHISHEZHIWEIXIANGTONGJIKE,DAIMAXIUGAIRUXIA:

[HTML] 純文本查看 復制代碼运行代码
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="http://glbcf.cn/" />
<title>螞蟻部落</title>
<style>
input{
  width:15px;
  height:15px;
  border:1px dotted blue;
}    
</style>    
</head>
<body>
具備的技能:
<input type="checkbox" name="jishu"/> 前端
<input type="checkbox" name="jishu"/> 后端
<input type="checkbox" name="jishu"/> PS
</body>
</html>

SHANGSHUDAIMAJIANGFUXUANKUANGDEnameSHUXINGZHIXIUGAIWEI"jishu",HOUTAIDAIMAXIUGAIRUXIA:

[C#] 純文本查看 復制代碼
String jineng = Request.Form["jishu"];

秒速赛车打不开ZHEYANGDEHUA,JIUKEYIJIESHOUDAOXUANZHONGFUXUANKUANGDEZHI,YEJIUSHISHUOTONGYILEIFUXUANKUANGDEnameSHUXINGZHISHEZHIWEIXIANGTONGJIKE。


鮮花

握手

雷人

路過

雞蛋

最新評論

返回頂部