修改首页推荐图片的最小尺寸
This commit is contained in:
parent
86b5731af7
commit
7f44514baf
|
@ -5,6 +5,10 @@
|
|||
$auth = Zend_Auth::getInstance();
|
||||
$this->headLink()->appendStylesheet('/css/index.css');
|
||||
?>
|
||||
<style>
|
||||
.carousel-inner .item .featured-image-link{text-align:center;}
|
||||
.featured-image{min-width:100%;text-align:center; margin:auto 0px;min-height:100%;}
|
||||
</style>
|
||||
<div class="row">
|
||||
<div class="span5" id="main-news">
|
||||
<h4><a href="archives">新闻</a></h4>
|
||||
|
@ -30,7 +34,7 @@
|
|||
foreach($this->news as $k=>$v)
|
||||
{
|
||||
echo '<div class="item'.($k==0?' active':'').'">';
|
||||
echo '<a href="'.$v['url'].'" title="'.$v['description'].'" ><img src="'.$v['image'].'" class="img-rounded featured-image" /></a>';
|
||||
echo '<a href="'.$v['url'].'" title="'.$v['description'].'" class="featured-image-link" ><img src="'.$v['image'].'" class="img-rounded featured-image" /></a>';
|
||||
echo '<div class="carousel-caption">';
|
||||
echo '<h4><a href="'.$v['url'].'">'.$v['title'].'</a><span class="pull-right">['.date("Y-m-d",strtotime($v['ts_published'])).']</span></h4>';
|
||||
//echo '<p>'.$v['description'].'</p>';
|
||||
|
|
Loading…
Reference in New Issue