Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使html文本高于绝对定位元素?_Html_Css_Absolute - Fatal编程技术网

如何使html文本高于绝对定位元素?

如何使html文本高于绝对定位元素?,html,css,absolute,Html,Css,Absolute,我试图得到一些硬编码的文本来显示上面绝对定位的元素,这是一个使用z-index的图像,但没有用 有什么我遗漏的吗 .repay { font-family:Arial,Helvetica, sans-serif; font-size:18px; color:#444; text-align:center; font-weight:bold; margin:40px 0px 30px 0px; z-index:10001; } .slide

我试图得到一些硬编码的文本来显示上面绝对定位的元素,这是一个使用z-index的图像,但没有用

有什么我遗漏的吗

.repay {
    font-family:Arial,Helvetica, sans-serif;
    font-size:18px;
    color:#444;
    text-align:center;
    font-weight:bold;
    margin:40px 0px 30px 0px;
    z-index:10001;
}

.sliderbubble-repay {
    width:227px;
    height:140px;
    background:url('../images/white-sliderbubble.png') no-repeat;
    position:absolute;
    top:119px;
    left:255px;
    z-index:1;
}

元素需要有
位置:绝对或<代码>位置:相对用于
z-index
工作

尝试添加
位置:相对
。偿还