IE6 under JS Hide select by CSS a bug_ form effect
Source: Internet
Author: User
There was a problem today when you hide the table row Tr
$id ("TR_" + ID + "_1"). Style.setattribute (' Csstext ', "display:none;");,
Table row Tr Inside the Select is not hidden in the IE6, or will be displayed in the page. You want to set a single style for a Select to hide
$id ("new_attpm_id2_" + ID). Style.setattribute (' Csstext ', "display:none;");
Also can not hide, the Internet search to find articles "IE6, JS through CSS hidden select a Bug", originally this is a IE6 bug, you can pass style.display = "None";
The final code is as follows $id ("new_attpm_id2_" + id). style.display = "None"; Solve the problem smoothly.
Please open under IE6: ie6_js_hidden_select_bug.html
Pass:
document.getElementById (' J_test '). style.display = ' None ';
You can hide the Select element.
But by:
document.body.id = ' page ';
With CSS code:
#page Select {display:none;}
The select element cannot be hidden under IE6.
Attempts to position, settimeout, and change Zoom to 1.001 have all failed.
In the memory of IE6, the infamous select requires an IFRAME mask bug that is estimated to be the same as the bug above: Under IE6, select is the windowed element, and its performance is essentially different from the ordinary HTML elements. What is the reason? It is estimated that only to see Microsoft's source code.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.