html表格数据滚动标签marquee

 <div class="container">
         <h1 class="page-header">滚动列表</h1>
         <table class="table table-bordered table-striped table-condensed "  style="margin-bottom: 0px;width:500px">
             <thead>
             <th>name</th>
             <th>sex</th>
             <th>age</th>
             <th>phone</th>
             </thead>
         </table>
         <!--
         marguee总结
          direction="up"  滚动方向 up是向上,down是向下
           οnmοuseοut="this.start()"   鼠标移出开始滚动
             οnmοuseοver="this.stop()"鼠标移进滚动停止
             bgcolor  滚动的背景颜色
             align:标签内容的对齐方式
             absbottom:绝对底部对齐
             absmiddle:绝对中央对齐
             baseline:底线对齐
             bottom:底线对齐
             bottom:底部对齐(默认)
             left:左对齐
             middle:中间对齐
             right:右对齐
             top:顶部对齐
             texttop:顶线对齐
             scrollamount:调节滚动速度

             left_shortcut_menu.js
         -->
         <marquee direction="up" scrollamount="10" bgcolor="#fcf8e3" οnmοuseοut="this.start()"
                  οnmοuseοver="this.stop()" width="500px" >
              <table class="table table-bordered table-striped table-condensed " style="width:500px">
                 <tr>
                     <td width="137px">linda</td>
                     <td width="100px">woman</td>
                     <td  width="100px">18</td>
                     <td>181234367768</td>
                 </tr>
                 <tr>
                     <td>judy</td>
                     <td>woman</td>
                     <td>18</td>
                     <td>181234367768</td>
                 </tr>
                 <tr>
                     <td>davi</td>
                     <td>man</td>
                     <td>18</td>
                     <td>181234367768</td>
                 </tr>
              </table>
         </marquee>


     </div>

效果图如下    (中间用到了bootstramp的一些样式,如果没有运用bootstramp 可以把样式去掉,单独测试marquee)


  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值