编辑你的代码:
<!DOCTYPE html> <html> <body> <form action="/html5/tryit/demo_form"> <input type="text" name="fname" placeholder="姓"><br> <input type="text" name="lname" placeholder="名"><br> <input type="submit" value="提交"> </form> <p><strong>注意:</strong> input标签的placeholder不支持IE9和更早的IE版本.</p> </body> </html>
查看结果:
phpxuexi.net
- 亲自试一试