Home >Web Front-end >HTML Tutorial >Regarding using pictures to make bullet points in an unordered list, how come it looks like this when I make it? _html/css_WEB-ITnose

Regarding using pictures to make bullet points in an unordered list, how come it looks like this when I make it? _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:51:341792browse

<html>    <head>        <title>how to be proper</title>		<style type="text/css">			ul.pic{list-style-type:none;				   padding-left:0;				   margin-left:0;}			li.pic{background:url('5.jpg') left center no-repeat;}		</style>		    </head>    <body>		<ul class="pic">			<li class="pic">abcdefg</li>			<li class="pic">hijklmn</li>			<li class="pic">opqrstu</li>		</ul>    </body><html>


Reply to discussion (solution)

li.pic{background:url('5.jpg') left center no-repeat;padding-left:20px}

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