gpt4 book ai didi

iphone - 在 HTML 有序列表中添加括号

转载 作者:太空宇宙 更新时间:2023-11-04 15:23:19 25 4
gpt4 key购买 nike

我正在开发一个 iPhone 应用程序,我在其中加载 UIWebView 中的 HTML 内容。我想创建一个这样格式的列表:

(1) item1

(2) item2

(3) item3

最佳答案

ol {list-style-type: none;}
li:before {content: "(" counter(section, lower-alpha) ") ";}
li { counter-increment: section;}

在这里测试:http://jsfiddle.net/Chumillas/NbNvy/

关于iphone - 在 HTML 有序列表中添加括号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6134898/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com