JS 去掉 ul 元素前的圆点_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:28:21
Original
1501 people have browsed it

从网上查了一些资料,看到设置方式如下:

ulObj.style.listStyle='none';
Copy after login

结果没有起到作用,求指教。


回复讨论(解决方案)

css   list-style:none

ulObj.style.display='block';

css   list-style:none


用JS怎么控制?


  • 1

  •     
  • 1

  •     
  • 1

  •     
  • 1

  •     
  • 1

  •     
  • 1

  •     
  • 1


<script> <br /> var oUl = document.getElementsByTagName("ul")[0]; <br /> oUl.style.listStyle = "none"; <br /></script>
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