摘要:
Html: 1 <div id="slide-box-1"> 2 <ul> 3 <li> 4 <a href="javascript:void(0);"> 5 <div class="slide-img"> 6 <img src="images/ambassador/a-1.jpg"> 7 </di 阅读全文
摘要:
1 //---------------------------------------------------input失去焦点时判断是否有值 2 btn_click: function () { 3 //input失去焦点时判断是否有值 若没有 则不能点击保存 4 function Input_verifica... 阅读全文
摘要:
调用方法 阅读全文
摘要:
//js 兼容各浏览器 var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; //height var w = window.innerWidth || document.documentElement.clientWidth || documen... 阅读全文
摘要:
//判断是上滚还是下滚function scroll(fn) { var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop, fn = fn || function () { }; window.addEventListener("scr... 阅读全文
摘要:
width: 960px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; 阅读全文
摘要:
function Head_menu(menu_container) { var _top = menu_container.offset().top; this.scroll_div = function () { var top = document.documen... 阅读全文
摘要:
> div { zoom: 1; } > div:after { display: block; clear: both; content: ""; visibility: hidden; height: 0; } 阅读全文
摘要:
text-align: justify; text-justify: distribute-all-lines; text-align-last: justify; width: 86px 阅读全文
摘要:
var box = document.getElementById( "gaga1" ); /* alert( box.getBoundingClientRect().top ); alert( box.getBoundingClientRect().right ); alert( box.getBoundingClientRect().bottom ); alert( box.getB... 阅读全文