Team:Korea U Seoul/template/contents slider
From 2013.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
<style> | <style> | ||
- | .slider{padding:5px 100px; width: | + | .slider{padding:5px 100px; width: 943px; height: 352px; position: relative;} |
- | .slider > img { width: | + | .slider > img { width: 943px; height: 352px;} |
.slider_navi{position: absolute; bottom: 30px; left: 110px;} | .slider_navi{position: absolute; bottom: 30px; left: 110px;} | ||
.slider_navi > span {background-color: #000000; margin: 10px; cursor: pointer; padding: 5px 7px; color: #FFFFFF;} | .slider_navi > span {background-color: #000000; margin: 10px; cursor: pointer; padding: 5px 7px; color: #FFFFFF;} | ||
Line 24: | Line 24: | ||
<script> | <script> | ||
var slider = $(".slider"); | var slider = $(".slider"); | ||
- | slider.width( | + | slider.width(943); |
- | slider.height( | + | slider.height(352); |
var slider_navi = $(".slider_navi"); | var slider_navi = $(".slider_navi"); | ||
var imgs = slider.children("img"); | var imgs = slider.children("img"); |
Revision as of 21:02, 27 September 2013