<!doctype html>
<html>
<head>
<style>
@media screen and (max-width: 480px){
#switcher {
display:block;
background: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQY2xFICSLTeJuWDALDsvc7YtIAdsNVpDWtRtOaGgPyCaPoGkjUvg') !important;
background-repeat: no-repeat !important;
background-position: center !important;
width: 300px !important;
height: 250px !important;
}
}
</style>
<body>
<a href="http://www.emailonacid.com"><span id="switcher"></span></a>
</body>
Darüber funktioniert in Gmail und Yahoo, aber nicht in Outlook und Mail.Ru. Irgendeine Idee?Hintergrundbild wird nicht in Outlook und Mail geladen.Ru
Mögliche Duplikate von [Wie bekomme ich Outlook, um ein Hintergrundbild anzuzeigen?] (Https://stackoverflow.com/questions/32430160/how-can-i-get-outlook-to-display-a-background- image) –
Dieser Code wird nie funktionieren, da Outlook Medienabfragen oder Hintergrundbilder auf diese Weise nicht unterstützt. Sie müssen versuchen, VML-Code wie @RasmusGlenvig bereits gepostet. – gwally