给子元素做定位。用position标签
示例:
<html>
<head>
<style type="text/css">
p.pos_abs
{
position:absolute;
left:100px;
top:150px
}
</style>
</head>
<body>
<p class="pos_abs">通过绝对定位,元素可以放置到页面上的任何位置。这段话设定为距离页面左侧 100px,距离页面顶部 150px。
</p>

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2022-02-08
  • 2021-11-12
  • 2022-12-23
  • 2021-07-05
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
相关资源
相似解决方案