浏览代码

去掉移动端点击的时候出现灰色背景bug

luyanan 7 年之前
父节点
当前提交
c82b2efb68
共有 6 个文件被更改,包括 14 次插入10 次删除
  1. 4 3
      css/share.css
  2. 1 2
      e/l.html
  3. 5 0
      e/p.html
  4. 1 2
      e/z.html
  5. 1 1
      js/paperShow.js
  6. 2 2
      js/patentShow.js

+ 4 - 3
css/share.css

1
@charset "utf-8";
1
@charset "utf-8";
2
/* CSS Document */
2
/* CSS Document */
3
html,body {margin:0;padding:0px;background: #efeff4;}
3
html,body {outline: 0;margin:0;padding:0px;background: #efeff4;-webkit-text-size-adjust: 100%;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}
4
.contentBody2{max-width:640px;margin:auto;}
4
.contentBody2{max-width:640px;margin:auto;}
5
/*.contentBody2 *{-webkit-user-select: none;}*/
5
/*.contentBody2 *{-webkit-user-select: none;}*/
6
.iconfontnew{display: inline-block;width: 18px;height: 18px;*margin-right: .3em;line-height: 18px;vertical-align: text-top;
6
.iconfontnew{display: inline-block;width: 18px;height: 18px;*margin-right: .3em;line-height: 18px;vertical-align: text-top;
9
/*input输入相关*/
9
/*input输入相关*/
10
.frmbtn {width: 100%;margin: 4% auto;font-size: 14px;line-height: 24px;padding:2%;border: 1px solid #FF9900;border-radius: 6px;color: #FF9900;outline: none;}
10
.frmbtn {width: 100%;margin: 4% auto;font-size: 14px;line-height: 24px;padding:2%;border: 1px solid #FF9900;border-radius: 6px;color: #FF9900;outline: none;}
11
.frmactive {color: #fff;background-color: #FF9900;border: 1px solid #FF9900;}
11
.frmactive {color: #fff;background-color: #FF9900;border: 1px solid #FF9900;}
12
	
12
/*移动端网站或APP点击后出现闪动或灰色背景,只需对绑定事件添加class样式 使其触发事件时背景为透明色*/
13
.activeThis{-webkit-tap-highlight-color:transparent;}
13
/*--------------------邀请好友注册科袖2017.4.28--------------*/	
14
/*--------------------邀请好友注册科袖2017.4.28--------------*/	
14
@media (min-width: 768px){
15
@media (min-width: 768px){
15
	.invitebody .form-inline .form-group {display:block;margin-bottom: 10px;vertical-align: middle;}
16
	.invitebody .form-inline .form-group {display:block;margin-bottom: 10px;vertical-align: middle;}
76
ul.tagList>li .h2Font{color: #666;}
77
ul.tagList>li .h2Font{color: #666;}
77
.madiaBlock{clear:both;}.madiaBlock:before,.madiaBlock:after{display:table;content:""}.madiaBlock:after{clear: both;}
78
.madiaBlock{clear:both;}.madiaBlock:before,.madiaBlock:after{display:table;content:""}.madiaBlock:after{clear: both;}
78
.madiaBlock ul.mui-table-view{margin:10px 0;overflow: hidden;}
79
.madiaBlock ul.mui-table-view{margin:10px 0;overflow: hidden;}
79
.madiaBlock ul.mui-table-view .mui-table-view-cell{position: relative;}
80
.madiaBlock ul.mui-table-view li{position: relative;}
80
.madiaBlock .madiaTit{position:relative;font-size:16px;color:#666;padding-left:10px;margin-top:15px;}
81
.madiaBlock .madiaTit{position:relative;font-size:16px;color:#666;padding-left:10px;margin-top:15px;}
81
.madiaBlock .madiaTit:before{display:inline-block;content:"";width:4px;height: 16px;position:absolute;top:1px;left:0;background: #ff9900;}
82
.madiaBlock .madiaTit:before{display:inline-block;content:"";width:4px;height: 16px;position:absolute;top:1px;left:0;background: #ff9900;}
82
.madiaBlock .madiaHead{width:90px;height:60px;margin-top:-30px;position:absolute;border:1px solid #E5E5E5;top:50%;background-position: center;background-size: cover;}
83
.madiaBlock .madiaHead{width:90px;height:60px;margin-top:-30px;position:absolute;border:1px solid #E5E5E5;top:50%;background-position: center;background-size: cover;}

+ 1 - 2
e/l.html

93
		var oDataId = $(this).attr("data-id");
93
		var oDataId = $(this).attr("data-id");
94
		if(oDataId.substring(0,1)!="#"){
94
		if(oDataId.substring(0,1)!="#"){
95
			location.href="http://" + window.location.host + "/e/p.html?id=" + oDataId;
95
			location.href="http://" + window.location.host + "/e/p.html?id=" + oDataId;
96
		}else{
97
			location.href="javascrip:;";
96
			$(this).addClass("activeThis");
98
		}
97
		}
99
	})
98
	})
100
	function getRecourceMe() {
99
	function getRecourceMe() {

+ 5 - 0
e/p.html

123
	
123
	
124
	$("body").on("click",".seeMore,#goCmpBrief",function(){
124
	$("body").on("click",".seeMore,#goCmpBrief",function(){
125
		location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
125
		location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.ekexiu.app";
126
		$(this).addClass("activeThis");
126
	})
127
	})
127
	$('#articelShow').on('click', 'li', function() {
128
	$('#articelShow').on('click', 'li', function() {
128
		var id = this.getAttribute("data-id");
129
		var id = this.getAttribute("data-id");
129
		location.href="http://" + window.location.host + "/e/a.html?id=" + id;
130
		location.href="http://" + window.location.host + "/e/a.html?id=" + id;
131
		$(this).addClass("activeThis");
130
	})
132
	})
131
	$('#resourceShow').on('click', 'li', function() {
133
	$('#resourceShow').on('click', 'li', function() {
132
		var id = this.getAttribute("data-id");
134
		var id = this.getAttribute("data-id");
133
		location.href="http://" + window.location.host + "/e/r.html?id=" + id;
135
		location.href="http://" + window.location.host + "/e/r.html?id=" + id;
136
		$(this).addClass("activeThis");
134
	})
137
	})
135
	$('#paperShow').on('click', 'li', function() {
138
	$('#paperShow').on('click', 'li', function() {
136
		var id = this.getAttribute("data-id");
139
		var id = this.getAttribute("data-id");
137
		location.href="http://" + window.location.host + "/e/l.html?id=" + id;
140
		location.href="http://" + window.location.host + "/e/l.html?id=" + id;
141
		$(this).addClass("activeThis");
138
	})
142
	})
139
	$('#patentShow').on('click', 'li', function() {
143
	$('#patentShow').on('click', 'li', function() {
140
		var id = this.getAttribute("data-id");
144
		var id = this.getAttribute("data-id");
141
		location.href="http://" + window.location.host + "/e/z.html?id=" + id;
145
		location.href="http://" + window.location.host + "/e/z.html?id=" + id;
146
		$(this).addClass("activeThis");
142
	})
147
	})
143
148
144
	function userMessage(id) {
149
	function userMessage(id) {

+ 1 - 2
e/z.html

102
		var oDataId = $(this).attr("data-id");
102
		var oDataId = $(this).attr("data-id");
103
		if(oDataId.substring(0,1)!="#"){
103
		if(oDataId.substring(0,1)!="#"){
104
			location.href="http://" + window.location.host + "/e/p.html?id=" + oDataId;
104
			location.href="http://" + window.location.host + "/e/p.html?id=" + oDataId;
105
		}else{
106
			location.href="javascrip:;";
105
			$(this).addClass("activeThis");
107
		}
106
		}
108
	})
107
	})
109
		
108
		

+ 1 - 1
js/paperShow.js

46
		if(oDataId.substring(0,1)!="#"){
46
		if(oDataId.substring(0,1)!="#"){
47
			$(this).attr("href","userInforShow.html?professorId="+oDataId);
47
			$(this).attr("href","userInforShow.html?professorId="+oDataId);
48
		}else{
48
		}else{
49
			$(this).attr("href","javascrip:;");
49
			$(this).attr("href","javascript:void(0)");
50
		}
50
		}
51
	})
51
	})
52
	$("#aboutAuthors").on("click","li.lastBtn",function(){
52
	$("#aboutAuthors").on("click","li.lastBtn",function(){

+ 2 - 2
js/patentShow.js

255
				if(oDataId.substring(0,1)!="#"){
255
				if(oDataId.substring(0,1)!="#"){
256
					$(this).attr("href","userInforShow.html?professorId="+oDataId);
256
					$(this).attr("href","userInforShow.html?professorId="+oDataId);
257
				}else{
257
				}else{
258
					$(this).attr("href","javascrip:;");
258
					$(this).attr("href","javascript:void(0)");
259
				}
259
				}
260
			}else{
260
			}else{
261
				$(this).attr("href","javascrip:;");
261
				$(this).attr("href","javascript:void(0)");
262
			}
262
			}
263
		})
263
		})
264
		$('#attention em').click(function() {
264
		$('#attention em').click(function() {