响应式webdemo
来源:互联网 发布:360抢票软件 编辑:程序博客网 时间:2024/06/06 09:47
<!doctype html>
<html>
<head>
<title>responsive web design test</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<style type="text/css">
body{
font:1em/150%;
}
/***
qtructure***/
#body{
padding:5px;
width:960px;
margin:20px auto;
}
#header{
height:180px;
}
#content{
width:600px;
float:left;
}
#right{
width:300px;
float:right;
}
#footer{
clear:both;
}
/**
media queries
*/
/* for 980px or less*/
@media screen and (max-width:980px){
#body{width:94%;}
#content{width:65%;}
#right{width:30%;}
}
/* for 700px or less*/
@media screen and (max-width:700px){
#content{
widht:auto;
float:none;
}
#right{
width:auto;
float:none;
}
}
/* for 480px or less*/
@media screen and (max-width:480px){
#header{
height:auto;
}
#right{
display:none;
}
}
/* border & guideline*/
#content{
background:#f8f8f8;
}
#right{background:#f0efef;}
#header,#content,#right{margin-bottom:5px;}
#body, #header,#content,#right,#footer{
border:solid 1px #ccc;
}
</style>
</head>
<body>
<div id="body">
<div id="header">i am head</div>
<div id="content">
<h2>Content</h2>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p> </div>
<div id="right">ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</div>
<div id="footer">
fsdfsdfdsfdsdfdsssssssssssfsdf
</div>
</div>
</body>
</html>
<html>
<head>
<title>responsive web design test</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<style type="text/css">
body{
font:1em/150%;
}
/***
qtructure***/
#body{
padding:5px;
width:960px;
margin:20px auto;
}
#header{
height:180px;
}
#content{
width:600px;
float:left;
}
#right{
width:300px;
float:right;
}
#footer{
clear:both;
}
/**
media queries
*/
/* for 980px or less*/
@media screen and (max-width:980px){
#body{width:94%;}
#content{width:65%;}
#right{width:30%;}
}
/* for 700px or less*/
@media screen and (max-width:700px){
#content{
widht:auto;
float:none;
}
#right{
width:auto;
float:none;
}
}
/* for 480px or less*/
@media screen and (max-width:480px){
#header{
height:auto;
}
#right{
display:none;
}
}
/* border & guideline*/
#content{
background:#f8f8f8;
}
#right{background:#f0efef;}
#header,#content,#right{margin-bottom:5px;}
#body, #header,#content,#right,#footer{
border:solid 1px #ccc;
}
</style>
</head>
<body>
<div id="body">
<div id="header">i am head</div>
<div id="content">
<h2>Content</h2>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p>
<p>text</p> </div>
<div id="right">ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd</div>
<div id="footer">
fsdfsdfdsfdsdfdsssssssssssfsdf
</div>
</div>
</body>
</html>
- 响应式webdemo
- WebDemo 总结
- 响应式
- 响应式
- 响应式
- 响应式
- 响应式
- 关于webdemo报错Error configuring application listener of class
- Errors running builder 'DeploymentBuilder' on project 'webdemo'.java.lang.NullPointerException
- [ 响应式设计 ] 响应式设计入门!
- 响应式编程:理解响应式编程
- [响应式布局]响应式布局技巧
- 响应式网页设计
- 响应式页面设计
- 响应式互联网设计
- 响应式设计-label
- 响应式网页设计
- 关于响应式页面
- 局域网IP和外网(广域网)IP(又称公有IP和私有IP)
- 30_有符号数据传送给无符号变量
- 把图片转为直接可视的图片
- 31_字符数据与整数进行算数运算
- 打印和显示的字体种类
- 响应式webdemo
- 32_字符与整型的赋值
- Tomcat虚拟项目目录
- quertz时间配置说明
- 北京首设历史文化保护区用地-北京-历史文化-保护区用地
- 创建型模式_简单工厂
- 求两点的距离;
- .net中“项目”和“解决方案”的区别
- 撞错 存在实型时不能求余数