簡體   English   中英

為什么我的網站不支持手機

[英]why my web site don't supported in mobile phone

 <!DOCTYPE html> <html> <head> <title>Responsive Images Test Page</title> </head> <body> <h1>Responsive Images Test Page</h1> <p>In supported browsers, the following image will load either small or large version depending on screen resolution, making a single 1kb request before requesting the appropriate size.</p> <img src="sample-content/running-sml.jpg?full=sample-content/running-lrg.jpg" /> <p id="cred"><strong>Photo credit (CC):</strong> Cia de Foto <a href="http://www.flickr.com/photos/ciadefoto/3192757134/in/pool-809956@N25/">Flickr Creative Commons</a></p> </body> </html>

我正在嘗試開發一個響應式網站。 但我的網站不支持手機。 <meta name="viewport" content="width=device-width, initial-scale=1.0">我將上述標簽用於響應式網站。 但這不起作用。 請幫我

響應式設計是您必須使用 css 手動完成的事情。 您不能簡單地添加元標記並且您的頁面是響應式的 ;) 對於您上面的代碼示例,您可以像這樣內聯:

<img style="max-width:100%" src="sample-content/running-sml.jpg?full=sample-content/running-lrg.jpg" />

但是當然您應該為您的站點創建一個樣式表文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM