簡體   English   中英

CSS沒有在Firefox或IE中加載。 適用於Chrome

[英]CSS not loading in Firefox or IE. Works in Chrome

我創建了一個簡單的教會目錄,在其中我編輯了CSS,將一個默認的Map Markers更改為我自己的一個。 我遇到的問題是地圖標記在Chrome和Safari上正確顯示,但沒有在Firefox IE或Edge上顯示。

copticchurch-directory.org

 /*
Theme Name:     Listify Child
Theme URI:      http://astoundify.com/themes/listify
Template:       listify
Version:        1.0
*/
.job_listing-rating-wrapper,
.map-marker-info .rating,
.single-comment-rating,
.star-rating-wrapper {
    display: none !important;
}


.type-job_listing.style-grid .job_listing-entry-footer {
    display: none;
}
.ion-information-circled
{
  content: url(http://copticchurch-directory.org/wp-content/uploads/2016/08/Map-Marker1.svg);
}

.ion-ios.information-circled
{
  content: url(http://copticchurch-directory.org/wp-content/uploads/2016/08/Map-Marker1.svg);
}

.ion.md.information-circled
{
  content: url(http://copticchurch-directory.org/wp-content/uploads/2016/08/Map-Marker1.svg);
}

問題在於在常規元素上使用content屬性。 請使用background屬性,它將具有更好的跨瀏覽器支持。

更改以下內容:

.ion-information-circled {
    content: url(...);
}

進入:

.map-marker .ion-information-circled::before {
    content: "";
    background: url(...)
}

https://jsfiddle.net/eyvetdz4/2/

在此輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM