<input>标签里面的 name 和 type 里的值怎么写?

name 和 type 属性里面的值是写什么,什么意思?


小小小丶猴
浏览 1940回答 4
4回答

nickylau82

简单的说,type是证件类型,name是证件名称type就是说这个input是身份证还是护照(文本框还是单选按钮),name就是这个input的名字

慕姐5733140

.style1{color:red;}.style2{color:green;}<input type="text" class="style1" /> <input type="password" class="style2" />
打开App,查看更多内容
随时随地看视频慕课网APP