اندازه مختلف برای دستگاه های مختلف
بازگشت به صفحه اصلی
بازگشت به صفحه مقاله
دو ستونی
دو سطری
اجرای کد RUN »
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> /* For width smaller than 400px: */ body { background-repeat: no-repeat; background-image: url('http://cp.webmehraz.com//Files/img_smallflower.jpg'); } /* For width 400px and larger: */ @media only screen and (min-width: 400px) { body { background-image: url('http://cp.webmehraz.com//Files/img_flowers.jpg'); } } </style> </head> <body> <p style="margin-top:360px;">Resize the browser width and the background image will change at 400px.</p> </body> </html>