css3模仿新浪微博主页文字滚动

<!DOCTYPE HTML>
<html lang="en-US">
<head>
<title>css3模仿新浪微博主页文字滚动</title>
<style type="text/css">
    *{margin:0;padding:0px;}
    body{background:#b1b1b1;font-family:Arial;font-size:14px;color:#202020;}
    li{list-style:none;border-bottom:1px #333333 dashed;padding:5px;}
    .tips{width:600px;margin:0 auto;line-height:24px;padding-top:10px;font-size:14px;}
    .bredcolor{color:#fff;}
    #sina_all{width:500px;height:300px;overflow:hidden;margin:0 auto;line-height:26px;}
    .idcontent_chang{-webkit-animation:idcontent_height .7s linear,idcontent_opacity .5s linear .7s;}
    @-webkit-keyframes idcontent_height{
        0%{height:0px;opacity:0;}
        100%{height:200px;height:52px;opacity:0;}
    }
    @-webkit-keyframes idcontent_opacity{
        0%{opacity:0;}
        100%{opacity:1;}
    }
    </style>
</head>
<body>
<section id="sina_all">
        <ul id="idcontent">
            <li>1源码爱好者提供编程源码、网站源码、网页素材、书籍教程、网站模板、网页特效代码等,做有质量的学习型源码下载站。
。</li>
            <li>2考试#根据《注册会计师法》规定:具有高等专科以上学校毕业学历、或者具有可以申请参加注册会计师全国统一考试。</li>
            <li>3[HTML5] css3模仿新浪微博主登陆页。</li>
            <li>4我猜人就是这样子吧。</li>
            <li>5源码爱好者提供编程源码、网站源码、网页素材、网站模板、网页特效代码等,做有质量的源码下载站。</li>
          </ul>
    </section>
    <script>
    function $(id){
        return typeof id === "string" ? document.getElementById(id) : id;
    }
    (function(){
        var aLi = $('idcontent').getElementsByTagName('li');
        setInterval(function(){
            var firstLi = aLi[aLi.length-1];
            $('idcontent').insertBefore(firstLi,aLi[0]);
            firstLi.className = 'idcontent_chang';
        },2000);
    })();
    </script>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值