css - Wordpress 和 Elementor 不显示所有样式(仅在定制器预览中显示)
问题描述
我有一个客户网站的问题,我创建的这个块:
ul.auszeichnungenListe li {
list-style-type: none!important;
position: relative!important;
padding: 0 0 3rem 3rem!important;
max-width:400px!important;
}
ul.auszeichnungenListe li h4{
padding:0!important;
margin:0!important;
}
ul.auszeichnungenListe li:after {
position: absolute!important;
left: 13px!important;
content: ''!important;
border-left: 1.5px dashed #0094a1!important;
margin-left: 5px!important;
height: 100%!important;
z-index:-1!important;
}
ul.auszeichnungenListe li:first-of-type:after {
top: 10%!important;
}
ul.auszeichnungenListe li:last-of-type:after {
display:none;
}
ul.auszeichnungenListe li:before {
background: transparent url("https://www.coachii.me/wp-content/uploads/2020/10/auszeichnungen.svg") scroll 0 0 no-repeat;
content:"";
width: 3rem;
height: 3rem;
position: absolute;
left: 0;
top: 8px;
background-position: 2rem -0.4rem 0 0;
}
<ul class="auszeichnungenListe">
<li><h4>Heading</h4>
Text</li>
<li><h4>Heading</h4>
Text</li>
<li><h4>Heading</h4>
Text</li>
<li><h4>Heading</h4>
Text</li>
</ul>
不要在此工作:https ://www.coachii.me/网站。当我将代码放入定制器时,它可以在预览中使用,但不能在实时网站上使用。
我已经将所有内容都设置为“!important”,但它仍然不起作用。有没有人遇到过同样的问题,也许有人可以帮助我?ps 缓存和服务器缓存也被清除在此处输入代码。
谢谢!
解决方案
推荐阅读
- python - 来自csv的熊猫表转换
- wpf - 从 Contentpresenter 获取 ActualHeight/ActualWidth
- c# - 循环流数据
- javascript - highchart 条形数据,边框适合数据
- model - Gensim Doc2vec 已训练,但未保存
- powershell - Azure AD 应用程序注册 - 如何在使用 powershell 或图形 API 注册应用程序时提供“应用程序类型”?
- java-money - javax.money 抛出 javax.money.MonetaryException: No MonetaryAmountFormat for AmountFormatQuery
- node.js - 如何在 firebase 中最近发布的数据集之前访问数据集
- azure-api-management - Azure Api 管理是否可以禁用订阅密钥
- gridview - Devexpress gridview根据多选行上下移动多行