How do I create a Unordered list in html with sub arrows?

社会主义新天地 提交于 2019-12-11 19:07:46

问题


I want to know how to accomplish something similar to this in wordpress. Any suggestions? maybe a sample code.

Can you show me an example how to apply it to the sub bullets?


回答1:


Yup. Use CSS, list-style-image.

http://www.w3schools.com/cssref/pr_list-style-image.asp




回答2:


You could use li:before{ content:"....";} to make an arrow? Like this:

<ul>
    <li>Disaster</li>
    <ul>
        <li>stuff</li>
        <li>Stuff2</li>
    </ul>
</ul>

CSS:

ul ul li:before {

         content: "\2192 \0020";
}
ul ul {
    list-style: none;
}

See it in function here, on this fiddle: http://jsfiddle.net/f9AzK/




回答3:


Use li:before { content: ...; }

HTML

<ul>
    <li>Disater Assistance Center Manager
        <ul id="sub">
            <li>San Jaun</li>
        </ul>
    </li>
</ul>

CSS

#sub { list-style:none; }
#sub li:before {
    content: "\2192 \0020";
}

JSFiddle

Other special characters can be found here.



来源:https://stackoverflow.com/questions/21194633/how-do-i-create-a-unordered-list-in-html-with-sub-arrows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!