HTML - 关于li的圆点样式变换
作者:
秒速五厘米
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>关于ul-li前圆点样式的更换</title> <style> div{ width: 200px; height: 200px; background-color: pink; margin: 0 auto; margin-top: 100px; } div ul{ width: 100px; height: 100px; background-color: tomato; margin: 0 auto; /*将样式变换为图片*/ list-style-image: url("image/ico.jpg"); /*样式为空心圆圈*/ /*list-style: circle;*/ /*不显示*/ /*list-style: none;*/ } </style> </head> <body> <div> <ul> <li>who</li> <li>are</li> <li>you</li> </ul> </div> </body> </html>