Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 视图配置文件需要位于包含或不包含内容的同一位置_Html_Css_Position - Fatal编程技术网

Html 视图配置文件需要位于包含或不包含内容的同一位置

Html 视图配置文件需要位于包含或不包含内容的同一位置,html,css,position,Html,Css,Position,当所有数据都可用时,我如何让下面的视图配置文件链接保持在同一位置我不知道如何使用css执行此操作尝试了底部:0但这不起作用,请接受任何帮助。我知道,如果你看看加里·贝内特,例如,我希望视图配置文件在所有配置文件的相同位置 一如既往,我们非常感谢您的帮助 <div class="thumbnail"> <div id"content" style="font-size:14px;min-height:140px;position: relat

当所有数据都可用时,我如何让下面的视图配置文件链接保持在同一位置我不知道如何使用css执行此操作尝试了底部:0但这不起作用,请接受任何帮助。我知道,如果你看看加里·贝内特,例如,我希望视图配置文件在所有配置文件的相同位置

一如既往,我们非常感谢您的帮助

    <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">

    <?

 }?>





&n




.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 */