从网上查了一些资料,看到设置方式如下:
ulObj.style.listStyle='none';
结果没有起到作用,求指教。
回复讨论(解决方案)
css list-style:none
ulObj.style.display='block';
css list-style:none
用JS怎么控制?
<script> <br /> var oUl = document.getElementsByTagName("ul")[0]; <br /> oUl.style.listStyle = "none"; <br /></script>
Statement: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