我想要的.nivo-controlNav
寬度自動適應寬度+餘量.nivo-controlNav a
如何定義(使用PHP或jQuery)一個div的寬度以適應錨內標籤的寬度+邊距?
代碼:
.nivo-controlNav {
margin: 480px auto 0;
overflow: hidden;
width: 200px;
}
.nivo-controlNav a {
background: url(images/bullets.png) no-repeat;
border: 0;
float: left;
text-indent: -9999px;
margin-right: 3px;
width: 22px;
height: 22px;
}
看起來好像你真的想自動化.nivo-controlNav的對中 – kjy112 2011-01-24 19:28:41
@ kjy112它變成了一種癡迷。 – alexchenco 2011-01-24 19:31:21
如果我沒有記錯,那麼在nivo-slider上有一個github回購。也許你想嘗試那裏。 https://github.com/gilbitron/Nivo-Slider – kjy112 2011-01-24 19:34:41