Browse Source

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

luyanan 7 years ago
parent
commit
c82b2efb68
6 changed files with 14 additions and 10 deletions
  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,6 +1,6 @@
1 1
@charset "utf-8";
2 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 4
.contentBody2{max-width:640px;margin:auto;}
5 5
/*.contentBody2 *{-webkit-user-select: none;}*/
6 6
.iconfontnew{display: inline-block;width: 18px;height: 18px;*margin-right: .3em;line-height: 18px;vertical-align: text-top;
@ -9,7 +9,8 @@ html,body {margin:0;padding:0px;background: #efeff4;}
9 9
/*input输入相关*/
10 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 11
.frmactive {color: #fff;background-color: #FF9900;border: 1px solid #FF9900;}
12
	
12
/*移动端网站或APP点击后出现闪动或灰色背景,只需对绑定事件添加class样式 使其触发事件时背景为透明色*/
13
.activeThis{-webkit-tap-highlight-color:transparent;}
13 14
/*--------------------邀请好友注册科袖2017.4.28--------------*/	
14 15
@media (min-width: 768px){
15 16
	.invitebody .form-inline .form-group {display:block;margin-bottom: 10px;vertical-align: middle;}
@ -76,7 +77,7 @@ ul.tagList>li{list-style:none;float: left;margin-right:10px;margin-bottom:10px;p
76 77
ul.tagList>li .h2Font{color: #666;}
77 78
.madiaBlock{clear:both;}.madiaBlock:before,.madiaBlock:after{display:table;content:""}.madiaBlock:after{clear: both;}
78 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 81
.madiaBlock .madiaTit{position:relative;font-size:16px;color:#666;padding-left:10px;margin-top:15px;}
81 82
.madiaBlock .madiaTit:before{display:inline-block;content:"";width:4px;height: 16px;position:absolute;top:1px;left:0;background: #ff9900;}
82 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,8 +93,7 @@ $(document).ready(function() {
93 93
		var oDataId = $(this).attr("data-id");
94 94
		if(oDataId.substring(0,1)!="#"){
95 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 99
	function getRecourceMe() {

+ 5 - 0
e/p.html

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

+ 1 - 2
e/z.html

@ -102,8 +102,7 @@ $(document).ready(function() {
102 102
		var oDataId = $(this).attr("data-id");
103 103
		if(oDataId.substring(0,1)!="#"){
104 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,7 +46,7 @@ $(document).ready(function() {
46 46
		if(oDataId.substring(0,1)!="#"){
47 47
			$(this).attr("href","userInforShow.html?professorId="+oDataId);
48 48
		}else{
49
			$(this).attr("href","javascrip:;");
49
			$(this).attr("href","javascript:void(0)");
50 50
		}
51 51
	})
52 52
	$("#aboutAuthors").on("click","li.lastBtn",function(){

+ 2 - 2
js/patentShow.js

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