CSS3的media的用法
来源:互联网 发布:战无不胜法器进阶数据 编辑:程序博客网 时间:2024/06/06 06:42
<!DOCTYPE html><html><head><meta charset="utf-8" /><meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /><meta content="yes" name="apple-mobile-web-app-capable" /><meta content="black" name="apple-mobile-web-app-status-bar-style" /><meta name="format-detection" content="telephone=no" /><meta http-equiv="Expires" CONTENT="-1"><meta http-equiv="Cache-Control" CONTENT="no-cache"><meta http-equiv="Pragma" CONTENT="no-cache"><title>购物商城触屏版</title><style type="text/css">*{margin: 0;padding: 0;}.container {width: 960;margin: auto;}.wrapper {width: 740px;float: left;}#Main {width: 520px;float: right;background: yellow;}#Sub01 {width: 200px;float: left;background: orange;}#Sub02 {width: 200px;float: right;background: green;}/***/@media only screen and (min-width: 1000px) {.container {width: 1000px;}.wrapper {width: 780px;float: left;}p {line-height: 600px;text-align: center;font-weight: bold;font-size: 2em;margin: 0 0 20px 0;}#Main {width: 560px;float: right;background: yellow;}#Sub01 {width: 200px;float: left;background: orange;}#Sub02 {width: 200px;float: right;background: green;}}/***/@media only screen and (min-width: 640px) and (max-width: 999px){.container {width: 640px;}.wrapper {width: 640px;float: none;}p {line-height: 400px;}#Main {width: 420px;float: right;background: yellow;}#Sub01 {width: 200px;float: left;background: orange;}#Sub02 {width: 100%;float: none;clear: both;line-height: 150px;background: green;}}</style></head><body><div class="container"><div class="wrapper"><p id="Main">MAIN</p><p id="Sub01">Sub01</p></div><p id="Sub02">Sub02</p></div></body></html>
0 0
- CSS3的media的用法
- css3 @media 用法
- ie8兼容css3的样式 如@media
- 实践 HTML5 的 CSS3 Media Queries
- media媒体查询的用法
- css中media的用法
- css3的transform2D用法
- 使用CSS3的@media来编写响应式的页面
- 使用CSS3的@media来编写响应式的页面
- CSS3 Media Query:移动 Web 的完美开端
- CSS3 Media Queries在iPhone4和iPad上的运用
- 使用css3的@media属性实现页面响应式布局
- CSS3 Media Query:移动Web开发的完美开端
- iPhone,iPad 等常用设备的 CSS3 Media Queries
- 使用CSS3的@media来实现网页自适应
- 使用CSS3的@media来实现网页自适应
- CSS3 Media Queries在iPhone4和iPad上的运用
- CSS3 利用@media screen实现网页布局的自适应
- 滑轮控件研究一、整体的构架
- C++ 虚函数和函数重载
- HDU 1394 Minimum Inversion Number 树状数组
- 滑轮控件研究二、GestureDetector的深入研究
- android实现EditText中加多行下划线的一种方法
- CSS3的media的用法
- Unity3D 4.0 界面 基础 入门
- 滑轮控件研究三、GestureDetector的中手势事件的测试
- 记录问题
- 滑轮控件研究四、VelocityTracker的简单研究
- FrameCapture(EmguCV based)
- 滑轮控件的研究五、ViewConfiguration的简单介绍
- 关于 C99, VLA, alloca的笔记
- 调试内存泄露