手机
当前位置:查字典教程网 >网页设计 > 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横版和竖版】相关文章:

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

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

JavaScript优化细节

Discuz!X“#145 - Table '.pre1_common_stat' is marked as crashed a

CSS精粹之布局技巧

ie6,7下空DIV无任何内容时占据空间问题解决

div中内容上下居中小结教程

CSS选择符详解

CSS如何控制网页(WEB)字体

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

精品推荐
分类导航