ipad 竖版 纯CSS判断ipad横版和竖版_ Div+Css教程-查字典教程网
ipad 竖版 纯CSS判断ipad横版和竖版
ipad 竖版 纯CSS判断ipad横版和竖版
发布时间:2016-12-27 来源:查字典编辑
摘要:Linkstudy#landscape{display:none;}body{background:red}#portrait{displa...

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Link study</title>

<>

<style media="all and (orientation:portrait)" type="text/css">

#landscape { display: none; }

body {background:red}

</style>

<>

<style media="all and (orientation:landscape)" type="text/css">

#portrait { display: none; }

body {background:green}

</style>

</head>

<body>

</body>

</html>

相关阅读
推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  • 最新 Div+Css教程学习
    热门 Div+Css教程学习
    网页设计子分类