numbers instead of points in nivoslider

老子叫甜甜 提交于 2019-12-07 18:57:00

问题


Does anyone know how to change the points to numbers in nivoslider? I tried looking in the css and the code but I can't find anything. Thanks


回答1:


Just comment the text-indent and the image background from the Nivo CSS file:

.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;
}

Explanation:

The numbers are dynamically generated inside the <a> 'bullets' but removed from viewport with text-indent. We just have to bring them in by commenting the lines I suggested.

Happy coding.



来源:https://stackoverflow.com/questions/8555598/numbers-instead-of-points-in-nivoslider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!