Template:BouncingDiv/styles.css:修订间差异

创建页面,内容为“.bouncing-container { position: relative; width: 300px; →‎父容器宽度:​ height: 300px; →‎父容器高度:​ border: 2px solid #333; overflow: hidden; margin: 20px auto; →‎居中显示:​ background-color: #f9f9f9; } .bouncing-div { position: absolute; width: 50px; height: 50px; background-color: #3498db; border-radius: 50%; →‎圆形:​ }”
 
无编辑摘要
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
.bouncing-container {
.bouncing-container {
   position: relative;
   position: relative;
  width: 300px; /* 父容器宽度 */
  height: 300px; /* 父容器高度 */
   border: 2px solid #333;
   border: 2px solid #333;
   overflow: hidden;
   overflow: hidden;
   margin: 20px auto; /* 居中显示 */
   margin: 0 auto; /* 居中显示 */
   background-color: #f9f9f9;
   background-color: #f9f9f9;
}
}
第14行: 第12行:
   height: 50px;
   height: 50px;
   background-color: #3498db;
   background-color: #3498db;
  border-radius: 50%; /* 圆形 */
}
}