3 回答

TA貢獻1806條經驗 獲得超5個贊
我知道這可能是一個較晚的響應,但是我遇到了同樣的問題。
我查了一下,以某種方式指出網址不是有效的“內容”類型,甚至Chrome和Safari都是好人,并且很好地展示了它。
對我有用的是創建一個空的“內容”并使用背景顯示圖像:它在Chrome,Firefox,Safari和IE8 + 9中很好地工作
.googlePic:before {
content: '';
background: url('../../img/googlePlusIcon.PNG');
margin-top: -6.5%;
padding-right: 53px;
float:right;
height: 19px;
}
編輯:忘記在類名后放置:before

TA貢獻1798條經驗 獲得超7個贊
您必須編寫兩個樣式的CSS類
.googlePic
{ /*this for crome browser*/
content: url('../../img/googlePlusIcon.PNG');
margin-top: -6.5%;
padding-right: 53px;
float:right;
height: 19px;
}
.googlePic: after
{ /*this for firefox browser*/
content: url('../../img/googlePlusIcon.PNG');
margin-top: -6.5%;
padding-right: 53px;
float:right;
height: 19px;
}
及其對我的工作:)
- 3 回答
- 0 關注
- 495 瀏覽
相關問題推薦
添加回答
舉報