新手,新写的INPUT函数的VALUE值显示不了。_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:47:55
Original
2167 people have browsed it

HTML的代码是是这个:
   


     Just type in your name (and click the Submit) to enter the contest:

 Firstname: 

 Lastname:

 

 

 

 

 

 

 


 
但是网页显示是这样:


请问是为什么呢??


回复讨论(解决方案)

<p>Just type in your name (and click the Submit) to enter the contest:<br />Firstname: <input type="text" name="firstname" value=""/><br />Lastname:<input type="text" name="lastnmae"value=""/><br /><input type="Submit" /><br/>hot<input type="radio" name="hotornot" value="hot" /><br/>not<input type="radio" name="hotornot" value="not" /><br/>salt<input type="checkbox" name="spice" value="salt" /><br/>pepper<input type="checkbox" name="spice" value="pepper" /><br/>garlic<input type="checkbox" name="spice" value="garlic" /><br/></p>
Copy after login

checkbox 复选框的 value 属性值不会显示在用户界面中,是传后台的,你想显示
外 前后加值

value属性内容是传递值时使用的,不能直接在界面中显示

 <input type="radio" name="hotornot" value="hot" >hot</input>
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!