Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

Incorrect markup representation: Overflow-x hidden style make div elements as input.

  • 4 trả lời
  • 7 gặp vấn đề này
  • 16 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

Check following html:

<html>
<head><style>.main div{overflow-x:hidden;}</style></head>
<body>
<div class="main">
<table>
<tr>
<td><div>Host Name</div></td>
<td><input type="text" /></td>
<td width="100"><div></div></td>
</tr>
<tr>
<td><div>Host Address</div></td>
<td><input type="text" /></td>
<td width="100"><div></div></td>
</tr>
<tr>
<td height="10px" colspan="3"><div> </div></td>
</tr>
</table>
</div>
</body>
</html>

Focus first input. Press 'Tab' key. You'll see that now focused empty div.

'''Check following html:''' <pre>&lt;html&gt; &lt;head&gt;&lt;style&gt;.main div{overflow-x:hidden;}&lt;/style&gt;&lt;/head&gt; &lt;body&gt; &lt;div class="main"&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;&lt;div&gt;Host Name&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" /&gt;&lt;/td&gt; &lt;td width="100"&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;div&gt;Host Address&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" /&gt;&lt;/td&gt; &lt;td width="100"&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="10px" colspan="3"&gt;&lt;div&gt;&nbsp;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt;</pre> '''Focus first input. Press 'Tab' key. You'll see that now focused empty div.'''

Được chỉnh sửa bởi cor-el vào

Tất cả các câu trả lời (4)

more options

FireFox 4.0.1 - bug still here.

more options

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

more options

The-edmeister thank you for reply. I ask that question on forums.mozillazine.org But it is not markup bug. It is FireFox bug.

more options

That is Bug 616594, seems to be fixed in Firefox 5

  • Bug 616594 - overflow:auto causes DIV to get tab focus

You can try to verify that with the 5.0 b1 version (do a custom install and create a new profile)

Do a custom install and install each version in its own program folder to use multiple Firefox versions.

See these mozillaZine KB articles for information: