在Firefox
。googlepic { 内容:url('../../ img/googleplusicon.png'); 利润率:-6.5%; 右右:53px; 浮点:对; 身高:19px; } 当此CSS在Google Chrome和Safari中的预期工作时,它无法在Firefox中渲染任何图像。
content属性通过在元素之前或之后插入内容来工作。通过使用::之前,我们将在.googlepic元素之前插入图像,该元素允许Firefox正确显示它。
.googlePic { content: url('../../img/googlePlusIcon.PNG'); margin-top: -6.5%; padding-right: 53px; float: right; height: 19px; }http://www.htmldog.com/reference/cssproperties/content/
Note:
Internet Explorer 8 only supports the content property if a !DOCTYPE is specified.
免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3