1 Star 3 Fork 1

Poppy / marquee跑马灯

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index8.html 3.05 KB
一键复制 编辑 原始数据 按行查看 历史
Poppy 提交于 2018-11-05 10:15 . 跑马灯特效
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>jQuery无缝滚动插件liMarquee演示-内容不足不滚动_dowebok</title>
<link rel="stylesheet" href="css/liMarquee.css">
<style>
.wrap { padding: 10px;}
.dowebok { width: 790px; margin: 150px auto; font-size: 14px;}
</style>
</head>
<body>
<h1>内容不足不滚动</h1>
<div class="dowebok">
内容未超过容器宽度(高度),不滚动。
</div>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/jquery.liMarquee.js"></script>
<script>
$(function(){
$('.dowebok').liMarquee({
runshort: false
});
});
</script>
<!-- 以下信息与演示无关,可不必理会 -->
<style>
body { margin: 0; border-left: 200px solid #ccc;}
h1 { margin: 40px auto; font: 32px "Microsoft Yahei"; text-align: center;}
.menu { position: absolute; left: 0; top: 0; bottom: 0; width: 200px; padding-top: 100px; font-family: Consolas,arial,"宋体"; background-color: #ccc;}
.menu a { display: block; height: 40px; margin: 0 0 1px 2px; padding-left: 10px; line-height: 40px; font-size: 14px; color: #333; text-decoration: none;}
.menu a:hover { background-color: #eee;}
.menu .cur { color: #000; background-color: #fff !important;}
.vad { margin: 50px 0 10px; font-family: Consolas,arial,宋体,sans-serif; text-align:center;}
.vad a { display: inline-block; height: 36px; line-height: 36px; margin: 0 5px; padding: 0 50px; font-size: 14px; text-align:center; color:#eee; text-decoration: none; background-color: #222;}
.vad a:hover { color: #fff; background-color: #000;}
.thead { width: 728px; height: 90px; margin: 0 auto; border-bottom: 40px solid transparent;}
.code { position: relative; margin-top: 100px; padding-top: 41px;}
.code h3 { position: absolute; top: 0; z-index: 10; width: 100px; height: 40px; font: 16px/40px "Microsoft Yahei"; text-align: center; cursor: pointer;}
.code .cur { border: 1px solid #f0f0f0; border-bottom: 1px solid #f8f8f8; background-color: #f8f8f8;}
.code .h31 { left: 0;}
.code .h32 { left: 102px;}
.code .h33 { left: 204px;}
.code .h34 { left: 306px;}
.code ol { padding: 0;}
.code { width: 800px; margin-left: auto; margin-right: auto;}
pre { padding: 15px 0; border: 1px solid #f0f0f0; background-color: #f8f8f8;}
.f-dn { display: none;}
</style>
<p class="vad">
<a href="http://www.dowebok.com/" target="_blank">dowebok.com</a>
<a href="http://www.dowebok.com/188.html" target="_blank">说 明</a>
<a href="http://www.dowebok.com/188.html" target="_blank">下 载</a>
</p>
<div class="menu">
<a href="index.html">1、默认效果</a>
<a href="index2.html">2、向右滚动</a>
<a href="index3.html">3、向上滚动</a>
<a href="index4.html">4、向下滚动</a>
<a href="index5.html">5、滚动速度</a>
<a href="index6.html">6、非无缝滚动</a>
<a href="index7.html">7、禁止拖动</a>
<a class="cur" href="index8.html">8、内容不足不滚动</a>
<a href="index9.html">9、鼠标悬停不暂停</a>
<a href="index10.html">10、反向</a>
<a href="index11.html">11、自定义事件</a>
<a href="index12.html">12、图片演示</a>
</div>
</body>
</html>
JavaScript
1
https://gitee.com/zhangjiangpeng/marquee.git
git@gitee.com:zhangjiangpeng/marquee.git
zhangjiangpeng
marquee
marquee跑马灯
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891