嗨,我在尝试使用 css 制作各种图像时遇到了问题。这是我的代码,如果有人可以帮助我,那将非常有帮助,谢谢。
<html>
<head>
<title></title>
<style type="text/css">
ul {
list-style-type: Square;
padding: 0px;
margin: 0px;
}
.fastdiet {
list-style-image: url("fastdiet.jpg");
padding-top: 3px;
padding-bottom: 3px;
padding-left: 20px;
padding-right: 5px;
}
.Midnight {
list-style-image: url("Midnight.jpg");
padding-top: 3px;
padding-bottom: 3px;
padding-left: 20px;
padding-right: 5px;
}
</style>
</head>
<body>
<ul>
<li class="fastdiet">This book is Number 1</li>
<li class="Midnight">This book is Number 2</li>
</ul>
</body>
</html>