I have problem this script dont working in IE 8 in Firefox is everything OK.
<html>
<style type="text/css">
lip{ position:absolute; }
</style>
<body>
<ul>开发者_Python百科;<lip>3<input type = "checkbox" name = "LH3" id ='lhpz12' value="ANO"></lip></ul>
<script type="text/javascript">
var listElements = document.getElementsByTagName("lip");
var element = listElements[0];
element.style.fontSize = "24px";
element.style.color = "green";
element.style.left = "100px";
element.style.top = "100px";
</script>
</body>
</html>
LIP isnt a valid tag, use something like a span or div.
In IE, those tags aren't until you create one in JavaScript. You should use a span
here.
精彩评论