html: <div class="ul_box"> <table class="table1"> <thead> <tr> <th>11111111111</th> <th>11111111111</th> <th>11111111111</th> <th>11111111111</th> </tr> <…
可以设置两个table,th,td得设置宽度:     <table>       <thead>          <tr><th></th></tr>       </thead>    </table>    <div style="max-height:500px;overflow-y:auto">       <table>            <t…
我查了好多资料,只找到一个demo <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>new…
demo1: <!DOCTYPE html> <html> <head> <title>div内容间隔1秒动态滚动</title> </head> <body> <div id="demo"> <span id="sp"> <p>恭喜133****1231用户获得100元手机话费</p> <p>恭喜134****1232用户…
效果如下: <!doctype html>Table header header two fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 fuck 2 fuck 1 f…
table头部.尾部固定;中间内容定高自适应滚动 很多时候,需要使用到表格做数据分析,不管是前端展现,还是后台管理系统节点展现 工作过程中遇到了,作为一个小笔记,备忘! 如下图所示 --------------------------------------------------------------------------------------------------------------------- -----------------------------------------…
在开发项目中,需要将表格头部固定,而且表格大多数情况下是会水平滚动的.项目的css框架是bootstrap 3,故也可以叫做bootstrap table. 需要实现的是:表格头部固定,并且支持水平滚动 html code(source table): <table id="top_fix_table" border="0" cellpadding="4" cellspacing="0" class="tabl…
这两天接了一个需求,页面是这样的 然后需求是页面中的这个表格当页面向上滚动,且表格的表头到达窗口上方时,表头悬浮在页面的上方,表格正常滚动,这样表格内的数据可以随时看到表头内容. 一开始我认为这是极简单的,就当页面滚动,判断表头到窗口的距离,当=0的时候触发事件然后让表头position:fixed不就万事大吉了吗?于是我对漂亮又萌萌哒的产品妹子说,放心吧,这个简单的很一会就能完事,当时我的表情是这样的 但是当我开始写(首先你要知道,我是个js小白,表问我为什么...),问题就来了.首先,这个页…
网上有很多用ul实现新闻列表滚动的例子,但是很少有直接用table实现列表内容滚动的例子,而Marquee标签滚动的效果不是很好,于是就自己写了一个,提供给攻城师朋友们参考 实现思路:由于table包含标题和内容,实际上理想的效果是标题不动,内容滚动,于是把标题和内容拆分出来放在两个table中 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <html> <head>…
<div class="m-demo"> <table> <thead> <tr><th>定宽a</th><th>定宽b</th><th>定宽c</th><th>最后列不定宽d</th></tr> </thead> </table> <div class="scroll"> &…