ul{ width:200px; background:gray; color:white; list-style-type:none; margin:0; padding:0; } li{ border:2px solid black; padding:5px; } li:last-child{ border-bottom:none; } li:hover{ background:red; color:black; }
<ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul>
you have to edit your css file like this
ul {
list-style-type: none;
}
so the list won't have bullets.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.