JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

CSS: position: relative absolute

发布时间 2023-04-04 14:21:53作者: LeoShi2020

<div class="course-b">
    <div class="outer">
        <div class="inner"></div>
    </div>
</div>

.outer{
    margin: 50px;
    width: 200px;
    height: 200px;

    background: gray;
    position: relative;
}
.inner{
    bottom: 0;
    left: -20px;
    width: 240px;
    height: 10px;
    position: absolute;
    background: black;
}
    本栏目推荐文章
  • 现代 CSS 解决方案:文字颜色自动适配背景色!
  • 跟着阿灵学前端(2)——CSS 基础
  • CSS
  • 《RAPL: A Relation-Aware Prototype Learning Approach for Few-Shot Document-Level Relation Extraction》阅读笔记
  • CSS
  • CSS实现文字滑动亮光效果
  • 【问题记录】【Fastjson】Fastjson 反序列化失败,syntax error, position at 0, name value
  • cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
  • 前端学习-HTML/CSS刷题笔记01
  • 'gbk' codec can't decode byte 0xff in position 0
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们