Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Background

Featured Replies

Posté(e)

Bonjour tout le monde,

j'ai un soucis et je ne sais pas comment les autres font donc voici le topo :

j'ai une image en fond (background) de site internet, cependant, cette image est en 1024*768.

Mon image de fond est mise à 100% en fond mais le soucis réside dans le fait qu'en changeant de résolution, celle ci se pixelise! je ne sais pas comment je peux faire pour empecher ceci!

un exemple de site qui ne pixelise pas avec une imga de fond :Urban Rivals

Comment ceci est possible??

merci d'avance :)

Posté(e)

L'image de fond du site que tu as mis en lien est répétée en fait. Donc c'est pour ca qu'elle ne pixelise pas.

Posté(e)

Un code javascript qui donne l'effet cherché:

<script language="Javascript" type="text/javascript">
if (screen.width == 1440) { var img_width = 1440; }
else if (screen.width == 1280) { var img_width = 1280 }
else if (screen.width == 1024) { var img_width = 1024 }
else if (screen.width <= 800) { var img_width = 800 }
else { var img_width = 1600 }; 


document.write('<style type="text/css" media="screen">');
document.write(' Body { background: url(\'images/background' + img_width + '.jpg\') }; ');
document.write('</style>');
</script>

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.