Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.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 href按钮没有';设置为“绝对”时不工作_Html_Css - Fatal编程技术网

Html href按钮没有';设置为“绝对”时不工作

Html href按钮没有';设置为“绝对”时不工作,html,css,Html,Css,我正试着从右边的幻灯片上取得联系。 如本页所示: 它对我有效,但当“位置”设置为“绝对”时,按钮不起作用。 以下是网站: 我做错了什么? 以下是我的html代码: if ( ! fotografie_blog_header_media_status() ) { return; } ?> <div class="custom-header"> <div class="custom-header-media">

我正试着从右边的幻灯片上取得联系。 如本页所示:

它对我有效,但当“位置”设置为“绝对”时,按钮不起作用。 以下是网站: 我做错了什么? 以下是我的html代码:

if ( ! fotografie_blog_header_media_status() ) {
    return;
}
?>
<div class="custom-header">
    <div class="custom-header-media">
        <?php fotografie_blog_header_media(); ?>
        <?php fotografie_blog_header_media_text(); ?>
    </div><!-- .custom-header-media -->
    <div class="custom-header-overlay"></div><!-- .custom-header-overlay -->
</div><!-- .custom-header -->

<!-- cd-panel -->
        <a href="#0" class="cd-btn js-cd-panel-trigger" data-panel="main"><span>Enquiry</span></a>
    <div class="cd-panel cd-panel--from-right js-cd-panel-main">
        <div class="cd-panel__container">
            <div class="cd-panel__content">
<?php $contact='[contact-form-7 id="1265" title="Contact slider"]'?>
<?php echo do_shortcode($contact);?>
<p class="contactside">It’s easy. Tell us about your event in detail and we'll get back to you with all the necessary information about Fotonaut including pricing.</p>
    </div> 
</div> 

表单上可能有另一个元素指定了
z-index
,并且它被放置在锚点的顶部,您可以尝试在锚点上设置z-index,以查看是否存在这种情况

.cd-btn.js-cd-panel-trigger{
    z-index: 100;
    /*...*/
}

表单上可能还有另一个元素指定了
z-index
,并且它被放置在锚的顶部,您可以尝试在锚上设置
z-index
,看看是否是这种情况哦ıt起作用:D将其作为答案
.cd-btn.js-cd-panel-trigger{
    z-index: 100;
    /*...*/
}