Html 如何使文本显示在div下而不影响div
我试图悬停,使文本出现在这些圆圈下,但每当我试图添加段落,他们只是使我的圆圈去的地方 这就是我想要达到的目标 HTMLHtml 如何使文本显示在div下而不影响div,html,css,Html,Css,我试图悬停,使文本出现在这些圆圈下,但每当我试图添加段落,他们只是使我的圆圈去的地方 这就是我想要达到的目标 HTML 他们的关系很密切,但在我的实际网站上,他们不是这样的,所以忽略它。当你将鼠标悬停在圆圈上时,我试图使文字显示在圆圈下方。有什么想法吗?CSS和HTML的新功能将这些行添加到。圆形按钮aCSS position: absolute; bottom: -90px; color: red; (您可以更换颜色,只是为了让您注意到更改)是什么标记?可能是页边距底部:80%你在悬停状
他们的关系很密切,但在我的实际网站上,他们不是这样的,所以忽略它。当你将鼠标悬停在圆圈上时,我试图使文字显示在圆圈下方。有什么想法吗?CSS和HTML的新功能将这些行添加到
。圆形按钮a
CSS
position: absolute;
bottom: -90px;
color: red;
(您可以更换颜色,只是为了让您注意到更改)
是什么标记?可能是页边距底部:80%代码>你在悬停状态下添加了?没有,我正在尝试在空白处添加文本。用边距移动它可能不是最好的主意,但我只是想演示一下。页边空白处是我希望文本的位置。添加一个段落并使其仅在悬停时可见仍然会改变圆圈的布局,所以我不能这样做。请看一下这个更新的提琴。但这有什么变化?常规样式对我来说很好,但我正在尝试使它在您将鼠标悬停在上面时,它将在按钮下显示文本。这是我在学校做的一个投资组合项目。这就是我想要达到的目标。
.row
{
height: 80%;
width: 100%;
text-align:center;
padding-top: 2%;
font-size: 25;
}
.round-button {
display:inline-block;
position: relative;
width:10%;
padding-top: 2%;
}
.round-button-circle {
height: 100px;
position:relative;
margin:0 auto;
border:2px solid #f0f0f0;
background: white no-repeat center center;
-moz-border-radius:100px;
-webkit-border-radius:100px;
border-radius: 100px;
width: 100px;
cursor:pointer;
-webkit-transition: all 0.2s ease-in;
-moz-transition: all 0.2s ease-in;
-ms-transition: all 0.2s ease-in;
-o-transition: all 0.2s ease-in;
transition: all 0.2s ease-in;
font-size: 0%;
}
.round-button-circle:hover {
background:#000000;
text-decoration-color: white;
font-size: 50%;
margin-bottom: 80%;
}
.round-button a{
display:block;
float:left;
width:100%;
padding-top:50%;
padding-bottom:50%;
line-height:1em;
margin-top:-0.5em;
text-align:center;
color:#e2eaf3;
font-family:Verdana;
font-size:1.2em;
font-weight:bold;
text-decoration:none;
}
position: absolute;
bottom: -90px;
color: red;