2017-04-08 79 views

回答

1

使用媒體查詢:

//the css inside this block will only be applied to devices with less than 800px width 
@media (max-width: 800px) { 
    //add css here to show the message to open the webpage on a device with a larger screen 
} 

您可以瞭解更多關於這裏媒體查詢:https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

正如你所標記的wordpress:您可以添加自定義CSS,你可以配置你的主題。

+0

我使用WordPress站點 –

2

設置寬度和高度,使用媒體查詢這樣

@media screen and (max-width:360px) and (max-height:520px){ 
    body{ 
    display:none 
    } 
} 

pen is here與可調整大小的窗口

相關問題