display: -webkit-flex; 手机上图下文字,pad上有浮动。
<article>
<div class="boxt">
<div class="boxt-right"><img src="data:images/c0401-002-s.png"/></div>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section> </div>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section>
<section class="boxt-left">3.You may have noticed that all three of these words are similar to <i class="red">say</i> in that they have meanings that are connected with <i>showing, telling</i> or <i>explaining</i>. But do you know how to use them c</section> </article>
@media screen and (min-width: 600px) {
.boxt{
margin-top: 20px;
}
.boxt-right{
float: right;
margin-left: 20px;
}
}
@media screen and (max-width: 600px) {
.boxt{
margin-top: 20px;
display: -webkit-flex;
-webkit-flex-wrap: wrap;
}
.boxt-right{
margin:0 auto;
-webkit-order: 3;
}
}
display: -webkit-flex; 手机上图下文字,pad上有浮动。的更多相关文章
- 详细介绍弹性盒模型(display:flex)
弹性盒模型,即Flexbox,是css3中的新特性,其实弹性盒模型的原身是dispaly:box:这里,我们暂时不考虑旧的,我们只看新的. 为容器指定弹性盒子,只需在父元素(也就是容器)中设置:dis ...
- 关于display:flex
遇到了一个bug 就是display:flex 遇到的bug原型就是,项目容器的diaplay:flex ,一行项目五个,到最后一行只剩两个的时候 是两端对齐的,如果再添加的话 也就是两端各一个子 ...
- 自定义控件,上图下字的Button,图片任意指定大小
最近处在安卓培训期,把自己的所学写成博客和大家分享一下,今天学的是这个自定义控件,上图下字的Button安卓自带,但是苦于无法设置图片大小(可以在代码修改),今天自己做了一个,首先看一下效果图,比较实 ...
- [Flex] flex手机项目如何限制横竖屏?只允许横屏?
flex手机项目如何限制横竖屏?只允许横屏? 有人知道吗?求教.. 工程中 xxx-app.xml 找到</aspectRatio> 去掉注释 修改为<aspectRatio&g ...
- IE6 IE7下文字显示竖排的解决办法
IE下文字显示竖排的解决办法: white-space:nowrap;
- 织梦手机站下一篇变上一篇而且还出错Request Error!
最新的织梦dedecms程序手机版下一篇变上一篇而且还出错Request Error!,这是因为官方写错了一个地方 打开 /include/arc.archives.class.php 找到 $mli ...
- 学习关于display :flex 布局问题!
很多人不明白这个display:flex是到底是什么东西,如何使用的 . 1.什么是display:flex呢? 答:flex是 flexible box的缩写,意为弹性布局 :这个东西的引入,为 ...
- click 在网页测试手机模式下无效,不能执行。调成非手机模式即可
click 在网页测试手机模式下无效,不能执行. 调成非手机模式即可
- WebKit 在 Windows 平台下编译小结
虽然WebKit 已经越来越多的被广大程序员接受,但其编译过程却非常之痛苦.下面将我编译WebKit 代码的经验与大家分享. 1) 获取WebKit 源代码 WebKit 源代码是使用Subversi ...
随机推荐
- DB2中时间格式化
values to_char(current timestamp - 7 hours,'hh24')||'点' values varchar(hour(current time + 5 hour))| ...
- C# DataGridView 导出 Excel(根据Excel版本显示选择不同后缀格式xls或xlsx)
/// <summary> /// DataGridView导出至Excel,解决问题:打开Excel文件格式与扩展名指定格式不一致 /// </summary> /// &l ...
- Maven实战一
转载:http://www.iteye.com/topic/1123221 1. 用Maven 命令创建一个简单的Maven项目 在cmd中运行如下命令: Cmd代码 mvn archetype:ge ...
- struts2 Convention插件零配置,使用注解开发
从struts21开始,struts2不再推荐使用codebehind作为零配置插件,而是改用Convention插件来支持零配置.与以前相比较,Convention插件更彻底. 使用Conventi ...
- 「Poetize8」Divisible
描述 Description 设F[i]为斐波那契数列的第i项,F[1]=1,F[2]=1,F[i]=F[i-1]+F[i-2](i>=3). 输入格式 InputFormat 输入包含若干行( ...
- 【转】Java运算符优先级
原文网址:http://www.cnblogs.com/gw811/archive/2012/10/13/2722752.html Java运算符优先级 序列号 符号 名称 结合性(与操作数) 目数 ...
- THOMAS MASON--英国顶级衬衫面料品牌
欧尚时光 THOMAS MASON--英国顶级衬衫面料品牌 2014-01-26 欧尚时光 今天为大家介绍英国顶级衬衫面料厂商:THOMAS MASON(托马斯·梅森).THOMAS MAS ...
- 《HTML5 从入门到精通--7.6.3 单元格垂直跨度——rowspan》
单元格除了能够在水平方向上跨列,还能够垂直方向上跨行.跨行设置须要使用rowspan參数. 语法 <td rowspan="单元格跨行数"> 语法解释 与水平跨度相相应 ...
- 关于 Head First SQL 中文版
我想谈谈 我对于Head First SQL 中文版的一些看法 事实上关于我翻译的这个Head First SQL 中文版..我自觉得:的确翻译得非常烂.. 和翻译Head First ...
- [C++] [算法] KMP算法
KMP串匹配算法是一个经典的算法. 传统BF算法是传统的字符串匹配算法.很好理解.叶实现.但时间复杂度太高. 本文将从字符串模式字符串被称为.为了匹配字符串被称为主弦. KMP配时能够少移动从串的位置 ...