gpt4 book ai didi

html - 使阴影下的html链接不可点击

转载 作者:太空宇宙 更新时间:2023-11-04 03:36:12 24 4
gpt4 key购买 nike

我在我的 HTML 页面中插入了一个模式。我想让标题链接在模式显示时不可点击(此处的屏幕截图:http://prntscr.com/4gyn61)

这是我的CSS:

 .modal {
display: none;
width: 600px;
height: 800px;
z-index: 999 !important; \\I use this to display it over the header.
background: #fff;
padding: 15px 30px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-o-border-radius: 8px;
-ms-border-radius: 8px;
border-radius: 8px;
box-shadow: inset 0 20px 40px -20px #000;
-webkit-box-shadow: 0 0 10px #000;
-moz-box-shadow: 0 0 10px #000;
-o-box-shadow: 0 0 10px #000;
-ms-box-shadow: 0 0 10px #000;
box-shadow: 0 0 10px #000;
}

和模态的html:

<div id="ex1" style="display:none;">
<p class="curr"> <?php include 'mypagewithtext.html'; ?></p>
</div>

有人知道吗?

编辑:只有标题。

最佳答案

我做了一个简单的 fiddle 来展示如何去做:

http://jsfiddle.net/o261o9gk/

我的技术是使用 div 叠加层作为阴影:

.overlay{
position:fixed;
top:0;
left:0;
background-color:black;
width:100%;
height:100%;
opacity:0.4;
}

基本上,固定的 div 而不是页面内容获得点击。

关于html - 使阴影下的html链接不可点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25528045/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com