搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Why does Value attribute of html text input forms not display in FF? It displays properly in Chrome-21, IE8, Opera 12

  • 3 回覆
  • 3 有這個問題
  • 253 次檢視
  • 最近回覆由 philipp

more options

was testing simple form html as follows:


<style type="text/css"> </style>

<form> Username: <input type="text" name="username" value="Enter Name Here">


Text for the "value" attribute "Enter Name Here" did not display when page rendered in FF 15.0.1, but does fine in other mentioned browsers.

</form>
was testing simple form html as follows: --------------------------------------------------------------------------------------------------- <!DOCTYPE html PUBLIC "_//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <style type="text/css"> </style> </head> <body> <form> Username: <input type="text" name="username" value="Enter Name Here"/> </body> </html> ------------------------------------------------------------------------------------------------------------- Text for the "value" attribute "Enter Name Here" did not display when page rendered in FF 15.0.1, but does fine in other mentioned browsers.

被選擇的解決方法

hello hopon, when i just put these two lines into a .html file it works for me. could you try to do the troubleshooting steps at Websites look wrong or appear differently than they should or reset firefox...

從原來的回覆中察看解決方案 👍 1

所有回覆 (3)

more options

選擇的解決方法

hello hopon, when i just put these two lines into a .html file it works for me. could you try to do the troubleshooting steps at Websites look wrong or appear differently than they should or reset firefox...

more options

Hi madperson, I went thru the troubleshooting steps with no change in the problem, but doing a full reset worked. Thanks :0)

Also: How do I mark a problem as solved? If there's a button, I'm just not seeing it.

more options

ok thanks for reporting back - by marking the prior answer as solution the question is considered as solved.

由 philipp 於 修改