Create ul and li elements in javascript.

后端 未结 4 1414
孤街浪徒
孤街浪徒 2020-12-08 15:51

I am trying to create ul and li element in my codes by using javascript. I have following:

var test=document.createElement(\'section\');
test.setAttribute(\'         


        
4条回答
  •  眼角桃花
    2020-12-08 16:12

    Use the CSS property list-style-position to position the bullet:

    list-style-position:inside /* or outside */;
    

提交回复
热议问题