![](/img/trans.png)
[英]Text-aligning CSS not working in Chrome or IE. Yes in FireFox
[英]CSS not loading in Firefox or IE. Works in Chrome
我創建了一個簡單的教會目錄,在其中我編輯了CSS,將一個默認的Map Markers更改為我自己的一個。 我遇到的問題是地圖標記在Chrome和Safari上正確顯示,但沒有在Firefox IE或Edge上顯示。
碼
/*
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(...)
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.