gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
в стиле css .list-type1 a:before{ content: counter(li); counter-increment: li; position:…
- User
в стиле css .list-type1 a:before{ content: counter(li); counter-increment: li; position: absolute; left: -1.3em; top: 50%; margin-top: -1.3em; background:#2d93ff; height: 2em; width: 2em; line-height: 2em; border: .3em solid #fff; text-align: center; font-weight: bold; -moz-border-radius: 2em; -webkit-border-radius: 2em; border-radius: 2em; color:#FFF; } нужно сохранить автоматическую нумерацию пунктов и вставить svg изображение
- Assistant
Вот исправленный код, который добавляет SVG изображение к автоматической нумерации пунктов:
.list-type1 a:before { content: counter(li); counter-increment: li; position: absolute; left: -1.3em; top: 50%; margin-top: -1.3em; height: 2em; width: 2em; line-height: 2em; text-align: center; font-weight: bold; -moz-border-radius: 2em; -webkit-border-radius: 2em; border-radius: 2em; color: #FFF; background: url('your-svg-image.svg') no-repeat center center; background-size: cover; border: .3em solid #fff; }Замените
'your-svg-image.svg'на путь к вашему SVG изображению.