Skip to content

Instantly share code, notes, and snippets.

@firhome
Created April 10, 2013 07:30
Show Gist options
  • Select an option

  • Save firhome/5352550 to your computer and use it in GitHub Desktop.

Select an option

Save firhome/5352550 to your computer and use it in GitHub Desktop.
test
.swipe_text {position: relative;width:300px;overflow: hidden;}
.swipe_text .c_b {float:left;position: relative;overflow: hidden;}
.swipe_text .c_b li {float:left;width:300px;background:#fff;position: relative;}
<div class="swipe_text">
<div id="swipeText">
<ul class="c_b">
<li><a href="###" title="">全部(1)</a><a href="###" title="">全部(1)</a><a href="###" title="">全部(1)</a></li>
<li><a href="###" title="">电影(1)</a><a href="###" title="">电影(1)</a><a href="###" title="">电影(1)</a></li>
<li><a href="###" title="">综艺(1)</a><a href="###" title="">综艺(1)</a><a href="###" title="">综艺(1)</a></li>
<li><a href="###" title="">热点(1)</a><a href="###" title="">热点(1)</a><a href="###" title="">热点(1)</a></li>
<li><a href="###" title="">热点(1)</a><a href="###" title="">热点(1)</a><a href="###" title="">热点(1)</a></li>
</ul>
</div>
</div>
var swipeText = $('#swipeText')[0];
var swipeTextFn = Swipe(swipeText,{
auto:1000 //做个样子,看完样子记得删除
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment