对齐div左上角的圆圈图像

时间:2020-06-24 09:04:15

标签: html css

enter image description here

如您在图像中看到的,div外部的左上角有一个溢出圆圈图像。我正在努力实现这一目标,但不确定如何实现。

我只是在边距顶部和边距左侧位置上玩,但这都无济于事。

代码:

<div class="decorative"> </div>

.decorative{
  position: static;
  width: 174.5px;
  height: 190.5px;
  left: 10px;
  top: 10px;

  background: #EEA731;

  /* Inside Auto Layout */

  flex: none;
  order: 0;
  margin-top: -130px;
  margin-left: -100px;
  align-self: center;
  margin: 10px 0px;
}

1 个答案:

答案 0 :(得分:0)

解决了此问题,它具有相对于父级div的位置和相对于圆div的绝对位置,管理圆div bg图像的左上宽度和边框半径为50%。

有时候,人们要求提供太多信息,我认为提供的信息足以帮助人们,这里不再像帮助论坛,而是寄宿学校,人们正在寻找机会拒绝您的查询哈哈

相关问题