html - 如何在 div 中的 div 之后放置文本?
问题描述
我有以下圆圈和标题。
我希望 h4 在动画圆 div 内居中。我不能放在里面,因为我会旋转圆圈,而且我不希望文字旋转。
我有以下 CSS。目前,所有圆圈都相互堆叠。我希望他们有自己的间距。谢谢!
.animating-circle {
position: absolute;
min-width: 250px;
min-height: 250px;
box-sizing: border-box;
border: 1px solid black;
border-radius: 50%;
border-top-color: #f1c40f;
border-right-color: skyblue;
border-bottom-color: violet;
border-left-color: lightgray;
}
.animating-circle+h4 {
position: relative;
top: 120px;
}
<div class='animating-circle'></div>
<h4>Title is here</h4>
解决方案
推荐阅读
- laravel - Laravel with() 方法的最佳实践
- python - 使用 Python Docx 按名称而不是按位置选择段落
- javascript - Nodejs路由器需要功能但有一个对象
- swift - 类文档未显示在 Xcode 中
- php - 从数据库中选择选项、值结果
- c# - 如何在 webbrower 控件中显示 CSS 和 HTML
- html - XSLT 使用 XSL 和 XML 创建链接
- git - Travis CI 跳过发布部署,因为这不是标记提交
- android - Android Studio - Gradle 同步失败:已处理
- node.js - 在 AWS EC2 上设置 SocketIO 服务器