Home  >  Article  >  Web Front-end  >  JS 去掉 ul 元素前的圆点_html/css_WEB-ITnose

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

WBOY
WBOYOriginal
2016-06-24 11:28:211503browse

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

ulObj.style.listStyle='none';

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


回复讨论(解决方案)

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>
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