Only in Firefox, when the A element contains Select, clicking Select cannot select option_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:34:16
Original
948 people have browsed it

This is a bug encountered when using a date component of JD.com. The code to reproduce the bug is simplified as follows

<!DOCTYPE HTML><html><head>	<title> 仅Firefox中A元素包含Select时点击Select不能选择option </title></head><body>	<a href="javascript:void 0"><select>		<option>1</option>		<option>2</option>		<option>3</option>		<option>4</option>	</select></a></body></html>
Copy after login

Code It's very simple. Element A contains a Select. Open the page in Firefox, click select, and the drop-down option will appear for the first time. If you click again after the second time, the option will not appear. Very strange.

Finally, in order to ensure that the option pops up normally every time you click select, you can remove element A, or replace element A with SPAN.

Tested Firefox version: 24

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!