项目
在 GitHub 查看
drygiel/csslider
关于
Pure CSS slider
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文CSS Slider
Pure CSS, simple slider.
Examples
Here are some examples:
Supported browsers
- Chrome
(tested only on 30) - Firefox
(tested only on 24) - IE
9No transitions10+Works perfect
- Opera
(tested only on 12)
Installation
Include the CSS stylesheet at the end of
<head>element:<link rel="stylesheet" href="/path/to/csslider.css" />Put code into webpage:
<div class="csslider"> <input type="radio" name="slides" id="slides_1" checked /> <input type="radio" name="slides" id="slides_2" /> <input type="radio" name="slides" id="slides_3" /> <input type="radio" name="slides" id="slides_4" /> <input type="radio" name="slides" id="slides_N" /> <ul> <li>Content of slide 1</li> <li>Content of slide 2</li> <li>Content of slide 3</li> <li>Content of slide 4</li> <li>Content of slide N</li> </ul> <div class="arrows"> <label for="slides_1"></label> <label for="slides_2"></label> <label for="slides_3"></label> <label for="slides_4"></label> <label for="slides_N"></label> <label for="slides_1" class="goto-first"></label> <label for="slides_N" class="goto-last"></label> </div> <div class="navigation"> <div> <label for="slides_1"></label> <label for="slides_2"></label> <label for="slides_3"></label> <label for="slides_4"></label> <label for="slides_N"></label> </div> </div> </div>
Global configuration
Default configuration can be set in LESS file.
Local configuration
If you want to change configuration for specific element you must override default config.
For instance if you have an element with id #my-slider and you want to change:
- arrows color
#my-slider .arrows label {
border-left-color: red;
border-right-color: red;
}
- inside navigation border
#my-slider.inside .navigation label {
border: 1px solid red;
}
探索相关项目
加载中…