gpt4 book ai didi

javascript - 在 Wordpress 网站上执行自定义 css 后 JS 无法正常工作

转载 作者:太空宇宙 更新时间:2023-11-03 19:45:03 26 4
gpt4 key购买 nike

我目前正在通过 wordpress 开发在线商店。一切正常,现在我想给我的页面一个自定义边框(倒圆 Angular )并找到它的 css 代码,如下所示:

CSS:

body {
background-color: #fff;
}

.wrapper {
overflow:hidden;
width:200px;
height:200px;


}

div.inverted-corner {
box-sizing:border-box;
position: relative;
background-color: #3e2a4f;
height: 200px;
width: 200px;
border: solid grey 7px;
}

.top, .bottom {
position: absolute;
width: 100%;
height: 100%;
top:0;
left:0;

}

.top:before, .top:after, .bottom:before, .bottom:after{
content:" ";
position:absolute;
width: 40px;
height: 40px;
background-color: #fff;
border: solid grey 7px;
border-radius: 20px;
}

.top:before {
top:-35px;
left:-35px;


}

.top:after {
top: -35px;
right: -35px;
box-shadow: inset 1px 1px 1px grey;
}

.bottom:before {
bottom:-35px;
left:-35px;
}

.bottom:after {
bottom: -35px;
right: -35px;
box-shadow: inset 1px 1px 1px grey;
}

html:

<div class="wrapper">
<div class="inverted-corner">
<div class="top">&nbsp; </div>
<h1>Hello</h1>
<div class="bottom"> </div>
</div>
</div>

我重命名了这些类,以免与主题的现有 css 类发生冲突。它工作正常,如下所示:my site .现在的问题是,我无法再与网站互动,没有链接,没有悬停效果。自定义 CSS 似乎覆盖了实际站点。您对我可能做错的地方有什么建议吗?

附言我编辑了 header.php,使倒 Angular div 和顶部 div 位于页面包装 div(站点内容)的正下方,在 footer.php 中,我编辑了顶部 div 和倒 Angular div 关闭页面的正上方-包装 div 关闭。

最佳答案

添加:

pointer-events: none;

.bottom-corner CSS,所以鼠标通过。

关于javascript - 在 Wordpress 网站上执行自定义 css 后 JS 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30100593/

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