Browse Source

资源图片发布修改显示变形问题

luyanan 8 years ago
parent
commit
b14a023713
6 changed files with 17 additions and 36 deletions
  1. 2 2
      css/common.css
  2. 3 2
      css/index.css
  3. 1 1
      css/webuploader/webuploader.css
  4. 7 7
      js/newsciresource.js
  5. 3 2
      js/popup.js
  6. 1 22
      resourceInfo.html

+ 2 - 2
css/common.css

@ -67,7 +67,7 @@ input{ outline:none;}
67 67
#container{ min-width:1100px;min-height:90%; background:#fff;overflow: hidden;}
68 68
.contentBody{width:1050px;height:auto; margin:10px auto; padding:80px 0 2px 0; }
69 69
/*footer部分*/
70
#footer{ min-width:1100px;background:#ff9900;clear: both;height:100px; position: relative; z-index: 1001; text-align:center;}
70
#footer{ min-width:1100px;background:#ff9900;clear: both;height:100px; position: relative; z-index: 100; text-align:center;}
71 71
#footer .wrapper {margin-left:80px;position: relative;padding: 15px 20px; min-width:1000px;}
72 72
#footer .footer-logo {display: block;width:80px;height:40px;background: url(../images/logo2.png) 0 0 no-repeat;background-size:100% 100%;}
73 73

@ -104,7 +104,7 @@ input{ outline:none;}
104 104
.downloadBtn .download-btn .app-android-icon, .downloadBtn .download-btn .app-ios-icon {float: left;display: block;width: 39px;height: 47px;margin-right: 10px;background: url(../images/app-icons.png) no-repeat;}
105 105
.downloadBtn .download-btn .app-android-icon { background-position: 0 -60px;}
106 106
.appcodeBox{ text-align:center;}
107
.app_code{width:240px; height:240px; margin:10px 20px 0;}
107
.appcodeBox .app_code{width:240px; height:240px; margin:10px 20px 0;}
108 108

109 109

110 110
/*------------------------------------------------------------------------------------*/

+ 3 - 2
css/index.css

@ -426,12 +426,13 @@ label.edu-radio{ float:none;font-size:16px;line-height:26px; color:#868686; }
426 426
.resUl li{ float: left; margin: 1%;padding:4px 16px; background: #FFFFFF; /*border: 1px solid #e6e6e6;*/border-radius: 6px;}
427 427

428 428
.resBottom{margin:10px 0;padding:20px 10px;background:#FFFFFF;}
429
.resMore{margin:10px 30px 30px 30px; border:1px solid #eaeaea; min-height: 640px;}
429
.resMore{margin:10px 30px 30px 30px; overflow: hidden; border:1px solid #eaeaea;padding:15px;line-height: 24px;color: #666; min-height: 640px;}
430
.resMore p{line-height:2;margin:6px 0;}
430 431

431 432
.resouRight{ width: 20%;}
432 433
.rightBlock{ min-height: 352px;padding:16px 10px;margin-bottom:10px; background: #FFFFFF;}
433 434
.proImg{ text-align: center;}
434
.proImg img{ width:180px;}
435
.proImg img{ width:180px;margin: auto;}
435 436
.proInfo{padding:10px 16px;}
436 437
.otherRes{padding:10px;}
437 438
.otherRes li{border: 1px solid #e4e5e7;margin:10px 0;border-radius: 6px;cursor: pointer;}

+ 1 - 1
css/webuploader/webuploader.css

@ -43,7 +43,7 @@
43 43
    height: 240px;
44 44
}
45 45
#uploader  .thumbnail img {
46
       height: 230px;
46
       /*height: 230px;*/
47 47
}
48 48
.uploader-list {
49 49
    width: 100%;

+ 7 - 7
js/newsciresource.js

@ -142,17 +142,17 @@ $(function(){
142 142

143 143
								$("#professor").text(name);
144 144
								if(info.data.images.length) {
145
															 var $liMages = $(
146
																	 '<div id="WU_FILE" class="file-item thumbnail">'+
147
															 			'<img src="/images/resource/'+resourceID+'.jpg">'+								 			
148
															 			'</div>'
149
															            )
145
									 var $liMages = $(
146
											 '<div id="WU_FILE" class="file-item thumbnail ResImgBox" style="max-width:226px;width:226px;height: 226px;">'+
147
									 			'<img class="resImg headRadius resourceImg" style="display: inline;" src="/images/resource/'+resourceID+'.jpg">'+								 			
148
									 		'</div>'
149
									            )
150 150
								}
151 151
								else
152 152
								{
153 153
									var $liMages = $(
154
											 '<div id="WU_FILE" class="file-item thumbnail">'+
155
									 			'<img src="/images/default-resource.jpg">'+								 			
154
											 '<div id="WU_FILE" class="file-item thumbnail ResImgBox" style="max-width:226px;width:226px;height: 226px;">'+
155
									 			'<img class="resImg headRadius resourceImg" style="display: inline;" src="/images/default-resource.jpg">'+								 			
156 156
									 			'</div>'
157 157
									            )
158 158
								}

+ 3 - 2
js/popup.js

@ -212,11 +212,12 @@ function ResourceInfo() {
212 212
		// 当有文件添加进来的时候
213 213
		uploader.on( 'fileQueued', function( file ) {
214 214
		    var $li = $(
215
		            '<div id="' + file.id + '" class="file-item thumbnail">' +
216
		                '<img>' +
215
		            '<div id="' + file.id + '" class="file-item thumbnail ResImgBox beforMargin" style="max-width:226px;width:226px;height: 226px;">' +
216
			           '<img class="resImg headRadius resourceImg" style="display: inline;" >' +
217 217
		            '</div>'
218 218
		            )
219 219
		            
220
		            
220 221
		        $img = $li.find('img');
221 222

222 223
		    // $list为容器jQuery实例

+ 1 - 22
resourceInfo.html

@ -12,13 +12,7 @@
12 12
<link type="text/css" href="css/index.css" rel="stylesheet">
13 13
<link type="text/css" href="css/common.css" rel="stylesheet">
14 14
<link type="text/css" href="css/popup.css" rel="stylesheet">
15
<style type="text/css">
16
	/*.resMore p img{width:100%;height:100%;}*/
17
	.resMore p{line-height:2;margin-top:15px;}
18
	.resMore{
19
		padding:0px 15px;
20
	}
21
</style>
15
22 16
</head>
23 17
24 18
<body>
@ -156,21 +150,6 @@
156 150
    </div>
157 151
</div>
158 152
159
<!--咨询模块按钮入口-->
160
 <div class="coulstblock">    
161
    <div class="coulstbox" id="consultbtn">
162
    	<div class="prohead headRadius floatL"><img src="images/default-photo.jpg" width="100%" height="100%" id="foot_proimg"></div>
163
    	<div class="proinfomation floatL">
164
    		<div class="clearfix">
165
    			<a class="authobject named" id="foot_proname"></a>
166
    			<em class=" authicon-cu" id="foot_promodify"></em>
167
    		</div>
168
			<div class="position"><span id="foot_protitle"></span><span></span ></div>				
169
			<div class="science"><span id="foot_prodepar"></span><span id="foot_proorgname"></span ><span class="address" id="foot_proaddress"></span></div>								
170
    	</div>
171
        <div class="coulstbtn floatR"><span >咨询</span></div>
172
    </div>
173
</div>
174 153
<script type="text/javascript" src="js/jquery-1.11.1.js"></script>
175 154
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
176 155
<script type="text/javascript" src="js/jquery.similar.msgbox.js"></script>