有谁知道如何将 nivoslider 中的点更改为数字? 我尝试查看 css 和代码,但找不到任何内容。 谢谢
最佳答案
只需评论 text-indent
和图像 background
来自 Nivo CSS 文件:
.theme-default .nivo-controlNav a {
/*background: url("bullets.png") no-repeat scroll 0 0 transparent;*/
border: 0 none;
display: block;
float: left;
height: 22px;
margin-right: 3px;
/* text-indent: -9999px; */
width: 22px;
}
说明:
这些数字是在 <a>
内动态生成的。 '项目符号' 但从视口(viewport)中删除 text-indent
。我们只需通过注释我建议的行来引入它们即可。
祝你编码愉快。
关于jquery - nivoslider 中的数字而不是点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8555598/