随笔分类 - Html/Css/Js
摘要:<base target="_blank" /> //新开窗口 href="javascript:getSwt();" //自己定义的触发商务通函数 <a href="javascript:void(0);" onclick="return getSwt();"> <a href="/swt/" o
阅读全文
摘要:jquery返回顶部特效,制作起来很简单。下面是具体实现代码。 $(document).ready(function() { //首先将#back-to-top隐藏 $("#back-to-top").hide(); //当滚动条的位置处于距顶部100像素以下时,跳转链接出现,否则消失 $(function() { $(window).scrol...
阅读全文
摘要:在这里送上几种IE使用模式! <meta http-equiv=“X-UA-Compatible” content=“IE=8″> 1. Google Chrome Frame也可以让IE用上Chrome的引擎: <meta http-equiv=“X-UA-Compatible” content=
阅读全文
摘要:ie8 background css没有显示?——都是空格惹的祸
阅读全文
摘要:.box { /*非IE的主流浏览器识别的垂直居中的方法*/ display: table-cell; vertical-align:middle; /*设置水平居中*/ text-align:center; /* 针对IE的Hack */ *display: block; *font-size:
阅读全文
摘要:var zhonghao={ //绑定事件 myAddEvent: function(obj, sEvent, fn){if(obj.attachEvent){obj.attachEvent('on'+sEvent, fn);}else{obj.addEventListener(sEvent, fn
阅读全文
摘要:<script>setTimeout(function(){ window.location.href="http://"+window.location.host;},5000);</script>
阅读全文
摘要:<script type="text/javascript"> function online(){ //商务通轨迹 var e = 'wap'; if(arguments.length == 1){ e = arguments[0]; } if(typeof openZoosUrl == 'und
阅读全文
摘要:js文字向上滚动代码<style>.pczt_pingfen_jhxs_news1{ width:397px; background:#edfafd; padding-top:2px; padding-bottom:2px; margin:0 auto;}.pczt_pingfen_jhxs_xia
阅读全文
摘要:<script>$(document).ready(function() { $("a").click(function(){ $(this).attr('href','javascript:void(0)'); getSwt('gzbdfyjy'); return false; });});</s
阅读全文
摘要:在所在的div要定义宽度,然后加入样式 text-overflow:-o-ellipsis-lastline; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:1;/*数字可以是1行、2
阅读全文
摘要:<!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.or
阅读全文
摘要:var yunzhuanhua_pc_domain = "http://www.域名.com#yht"; //PC站网址var yunzhuanhua_wap_domain = "http://m.域名.com#yht"; //手机站网址document.writeln("<frameset col
阅读全文
摘要:// 8点到早上19点关var curr = new Date();var time = curr.getHours();if ( time >=0 && time <24 ){ document.write("<frameset cols=\"100%\">"); document.write("
阅读全文
摘要:1, js代码 function ntabs(thisObj,Num) {if(thisObj.className == "active")return; var tabObj = thisObj.parentNode.id; var tabList = document.getElementByI
阅读全文

浙公网安备 33010602011771号