根據屏幕大小制定顯示頁面

CSShtml

@media screen and (min-width: 900px){
	.site{
		display:none;
	}
}

@media screen and (max-width: 899px){
	.no-mobile{
		display:none;
	}
}

頁面htm

    <p class="no-mobile shadow">
        Please visit from your mobile phone!<br>
        This page is made to work for mobile devices!
    </p>
    <div class="site">
    </div>
相關文章
相關標籤/搜索