主要介绍一种常用css定位。

<p>
  <span>***文字</span> <span >***文字</span> <br/>
  <span>****文字</span>
  <img class="app_sanrow" src="appShow/anrow_down.jpg')" />
</p>

 

要求图片img在p的左下角。重点:p要相对定位,这样才能包住,已经绝对定位的img。相对定位不脱离文档流,而绝对定位脱离

<style>

p{

  position: relative;

}

.app_sanrow{
position: absolute;
bottom: 10px;
right: 10px;
}

</style>

 

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2021-10-25
  • 2021-05-18
  • 2021-12-15
  • 2021-05-10
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案