首页 推荐 热点 专题 PHPJavaPythonAndriodIOSC#前端数据库人工智能程序开发架构安全运维资讯微课资源
0
点赞
收藏
分享

微信扫一扫

当使用定位时,margin-top和top 同时使用时,值最大的起作用

禾木瞎写 2022-11-19 阅读 75
jscsshtml前端开发


当使用定位时,margin-top和top 同时使用时,值最大的起作用_html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.div {
position: fixed;
top: 10px;
margin-top: 100px;
width: 200px;
height: 300px;
background-color: #00a4ff;

}
</style>
</head>
<body>
<div class="div">

</div>
</body>
</html>


举报
0 条评论
禾木瞎写
关注
  • 新能源知识库(65)逆变器和PCS的专用散热风扇介绍
  • 阿拉伯转汉字python
  • Kubernetes Deployment生命周期钩子深度解析
  • 第二九课:HarmonyOS Next设备特性访问与权限管理实践
  • Java(day80):Java 中的 LinkedList:从基本概念到应用场景全解析
  • 关于Redis的面试题目及其答案
  • 高效并发,实时追踪:淘宝1688商品价格监控API接口详解
  • 国君产业研究汽车报告|大模型赋能座舱,智能座舱新战场(附PDF)
  • docker 一直在Building
  • 开放性实验——网络安全渗透测试