SoFunction
Updated on 2025-02-28

When modifying the batch beautification select + modifying the select that is ready to be issued, several problems were found in non-IE

Problems found may be added one after another
1. Neither Mozilla nor Opera support this font, changing DTD will have no effect. Testing inMozilla Firefox1.5 and Opera9.0 are displayed in Arial fonts. And special symbols are supported.

like:
<body id="">
<div style="font-family:Webdings">6</div>
<div>▼</div>
</body>
You can open it in different browsers and you can see the difference. In the past, Webdings fonts were not often used, but now I discovered this problem, so it is better to use pictures to do these in the future.

2. Add the option of the select control in IE and Opera, this is how
<select >
</select>
<script type="text/javascript">
//<![CDATA[
var a=("sel");
var o=new Option("","a",false,false);
(o);
//]]>
</script>
But it fails under Mozilla, exception will be thrown. What if you dynamically add the Option of the select control in Mozilla? Just need to
<select >
</select>
<script type="text/javascript">
//<![CDATA[
var a=("sel");
var o=new Option("","a",false,false);
(o);
//]]>
</script>
(o); This sentence means that it is not like in IE that you can directly add option on the select control object, but add option on the options object. Therefore, it can also be seen from this point that Mozilla requires strict code writing.

3. Similarly, when deleting, use the remove method, but the difference is that it does not delete option on the options object, but an operation on the select control object. Code
<select >
</select>
<script type="text/javascript">
//<![CDATA[
var a=("sel");
var o=new Option("never-online","a",false,false);
(o);
alert("You can see that the option never-online has been added");
(0);
alert("Remove added option now");
//]]>
</script>