我们如何在不使用任何图像的情况下像上面一样在底部设计提示。以下是我的跟踪代码:
<div id="coverImageToolTip"><p><font color="white">TIP:</font> UPLOAD YOUR<br/> COVER IMAGE HERE
<div id="tail1"></div>
<div id="tail2"></div>
#coverImageToolTip {
position: absolute;
z-index: 10;
padding: 0px 4px;
background-color: gray;
bottom: 100px;
left: 20%;
border-radius: 10px;
font-weight: bold;
border-bottom: 5px solid black;
}
/* #tail1 {
position:absolute;
bottom:100px;
left:20px;
width:0;height:0;
border-color:#a0c7ff transparent transparent transparent;
border-width:10px;
border-style:solid;
} */
#tail2 {
position:absolute;
bottom:-18px;
left:20px;
width:0;height:0;
border-color: red transparent transparent red ;
border-width:10px;
border-style:solid;
transform:rotate(90deg);
-ms-transform:rotate(90deg); /* IE 9 */
-moz-transform:rotate(90deg); /* Firefox */
-webkit-transform:rotate(90deg); /* Safari and Chrome */
-o-transform:rotate(90deg); /* Opera */
}