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