2017-04-08 68 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与可调整大小的窗口