摘要:
封装(动态DOM宽度获取) 阅读全文
摘要:
$(document).ready(function(){ var scrollbarWidth = $('#main')[0].offsetWidth - $('#main')[0].scrollWidth; alert('滚动条的宽度是:' + scrollbarWidth + 'px'); } 阅读全文
摘要:
//树图拉伸 jQuery(function ($){ var doc = $(document), dl = $(".side-tree"), dc = $(".tree-content"); var sum = dl.css("left") + dc.width() + $(".t... 阅读全文
摘要:
table tbody { width:100%; display:block; height:195px; overflow-y:scroll; } table thead, tbody tr { display:table; width:100%; table-layout:fixed; } t 阅读全文
摘要:
$(".DIV").scroll(function(){ $(".target").scrollLeft($(".DIV ").scrollLeft()); }); $(".m-h430").scroll(function(){ $(".tabZqtabX").scrollLeft($(".m-h4 阅读全文
摘要:
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { // 获取已激活的标签页的名称 var activeTab = $(e.target)[0].hash; if(activeTab=="#day"){ console.log("j 阅读全文
摘要:
sticky 盒位置根据正常流计算(这称为正常流动中的位置),然后相对于该元素在流中的 flow root(BFC)和 containing block(最近的块级祖先元素)定位。在所有情况下(即便被定位元素为 table 时),该元素定位均不对后续元素造成影响。当元素 B 被粘性定位时,后续元素的 阅读全文
摘要:
.tab-content > .tab-pane, .pill-content > .pill-pane { display: block; /* undo display:none */ height: 0; /* height:0 is also invisible */ overflow-y: 阅读全文
摘要:
CSS根据屏幕分辨率宽度自动适应的办法 第一种办法是js选择CSS CSS根据屏幕分辨率宽度自动适应的办法 第一种办法是js选择CSS CSS根据屏幕分辨率宽度自动适应的办法 第一种办法是js选择CSS <SCRIPT language=JavaScript><!-- Beginif (screen 阅读全文