Browse Source

专家文章顶部图片样式

luyanan 8 years ago
parent
commit
a13c0cef94
4 changed files with 8 additions and 10 deletions
  1. 3 3
      app/css/app.css
  2. 4 1
      app/html/artical_01.html
  3. 1 6
      app/html/professorArticle.html
  4. BIN
      app/images/default-art_top.jpg

+ 3 - 3
app/css/app.css

@ -559,11 +559,11 @@ ul.boxnav li.set span:before{
559 559

560 560
/***********************缺省页面*******************/
561 561
.nodatabox{width:100%;height: 100%; margin:50px auto;text-align: center;}
562
.nodatabox .picbox{width: 40%;margin: auto;}
562
.nodatabox .picbox{width: 40%;margin:20% auto 20px;}
563 563
.nodatabox .picbox .defpic{display:block;margin:auto;width:160px; height: 160px;background: url(../images/nodata.png) -6px 0 no-repeat;}
564 564
.nodatabox .picbox .defpic.consult-pic{background-position: -232px -1320px;}/*咨询页面未登录*/
565 565

566
.nodatabox .txtbox { margin:40px 0 10px 0;}
566
.nodatabox .txtbox { margin:20px 0 10px 0;}
567 567
.nodatabox .txtbox .currword{font-size: 14px;color: #999999;line-height: 14px;}
568 568
.nodatabox .txtbox .currtip{ font-size:13px;color: #AAAAAA;}
569 569
.nodatabox .txtbox .keyword{ padding:0 6px;}
@ -590,7 +590,7 @@ ul.boxnav li.set span:before{
590 590
	background: -moz-linear-gradient( rgba(0,0,0,0), rgba(0,0,0,0.2)); /* Firefox 3.6 - 15 */
591 591
	background: linear-gradient( rgba(0,0,0,0), rgba(0,0,0,0.2)); /* 标准的语法 */
592 592
}
593
.art_img{ width: 100%; height:200px ; overflow: hidden;background: url(../images/default-artical.jpg) center center no-repeat;background-size:100% auto;}
593
.art_img{ width: 100%; height:140px; overflow: hidden;background: url(../images/default-art_top.jpg) center center no-repeat;background-size:100% auto;}
594 594
#artical_topic{position: absolute;bottom:0;padding:6px 10px;font-size:18px;line-height:24px;color:#FFFFFF}
595 595

596 596
#artical_sth{font-size:12px;line-height: 14px;color:#999999;}

+ 4 - 1
app/html/artical_01.html

@ -19,7 +19,10 @@
19 19
</header>
20 20
<div class="mui-content">
21 21
	<div class="art_topicBox">
22
		<img src="../images/banner/artical_01.jpg">
22
		<div class="art_img" style="background: url(../images/banner/artical_01.jpg) center center no-repeat; background-size:100% auto;">
23
			
24
		</div>
25
		
23 26
		<div class="art_topicbox">
24 27
			<h4 id="artical_topic" ><!--title-->李光福:为核电安全发展护航  腐蚀防护任重道远<!--title--></h4>
25 28
		</div>

+ 1 - 6
app/html/professorArticle.html

@ -14,7 +14,6 @@
14 14
			.mui-content {
15 15
				background: #FFFFFF;
16 16
			}
17
			p{padding:0; margin: 0;text-indent: 0;}
18 17
			#main_content img{
19 18
				width:100%;
20 19
			}
@ -33,14 +32,10 @@
33 32
					<span class="mui-pull-left" id="leaveWord">留言</span>
34 33
				</div> 
35 34
			</div>
36
			<!--<div class="attentbtn mui-pull-left">
37
				<em class="mui-iocn iconfont icon-favor" id="yesExpert"></em>
38
				<em class="mui-iocn iconfont icon-favorfill" style="display:none;" id="noExpert"></em>
39
				已经关注icon-favorfill
40
			</div>-->
41 35
		</nav>
42 36
		<div class="mui-content">
43 37
			<div class="art_topicBox">
38
				
44 39
				<div class="art_img" id="articleImg"></div>
45 40
				<div class="art_topicbox">
46 41
					<h4 id="artical_topic"></h4>

BIN
app/images/default-art_top.jpg