0

当所有数据都可用时,我如何让下面的视图配置文件链接保持在同一位置我不知道如何使用 css 尝试底部:0 但这没有任何帮助,不胜感激。例如,如果您以 Gary Bennett 为例,我希望视图配置文件对于所有配置文件都位于同一位置。

http://east-belfast.wsini.com/staff

一如既往地非常感谢任何帮助。

    <div class="thumbnail">
    <div id"content"  style="font-size:14px;min-height:140px;position:          relative;">

  <img src="images/profile.png" align="left" style="padding-right:5px;">

  <span style="color:#3c79ba"><?php echo $item->name;?></span><br/>
  <span><?php echo $item->job_title;?></span><br/>
  <img src="images/line.png"><br />  <?php if ($item->phone !="" ) {?> 
  <img src="images/phone.png">&nbsp;&nbsp;
  <?php }else{?>
  <br />

  <img src="images/email.png">&nbsp;&n
  <span  style="color:#3c79ba"><?php echo $item->phone;?></span><br />
  <?php }?>
   <?php if ($item->email !="" ) {?> 
  <img src="images/email.png">&nbsp;&nbsp;<span  style="color:#5881b3"><?php echo $item->email;?> </span><br /> 
  <?php }else{?>
  <br />
  <?php }?>
  <br /> 
  <div style="height:10px;position: absolute; bottom: 0; left: 0;">
  <a href="<?php echo JRoute::_('index.php?option=com_staffdirectory&view=staff&id=' . (int)$item->id); ?>"> View profile
    </a>
        </div>
  </div>
 </div>
 <?php


 if($counter == 2) {?>

    <br class="clearboth">

    <?

 }?>
4

1 回答 1

0
.thumbnail div { position:relative; height: 142px; } /* 142px is the height of your images, put in to make the box stretch in height if little content */
.thumbnail a { position: absolute; bottom: 0; } /* I'd add a class to this in case you want to link any other info from the container */
于 2012-08-09T11:59:09.020 回答