手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >ipad 竖版 纯CSS判断ipad横版和竖版
ipad 竖版 纯CSS判断ipad横版和竖版
摘要: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>

【ipad 竖版 纯CSS判断ipad横版和竖版】相关文章:

用纯CSS打造可折叠树状菜单

用CSS自定义滚动条的样式

{ hide_text } CSS文字隐藏总结报告

纯CSS定义双色文字

CSS3 Media Query:移动Web的完美开端

css中用javascript判断浏览器版本

CSS精粹之布局技巧

css样式命名规范

17个有趣实用的CSS 3悬停效果教程

巧用CSS来控制div自适应浏览器的高度

精品推荐
分类导航