随笔分类 -  Html/Css/Js

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