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 ...
随机推荐
- hdu 5128 The E-pang Palace
http://acm.hdu.edu.cn/showproblem.php?pid=5128 题意:给定N个点,选出其中8个点组成两个矩形,使得两个矩形的面积和最大. 思路:找出所有的矩形,然后枚举, ...
- FileUtils
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import ja ...
- linux 发布 qt(更新ld命令的路径依赖)
PATH 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such ...
- FindControl什么时候才会使用ObjectFromHWnd函数呢?——VCL很难调试,加一个日志函数,记录时间
IsDelphiHandleFindVCLWindowfunction IsVCLControl(Handle: HWND): Boolean;function FindControl(Handle: ...
- phpMyAdmin 完整路径泄露漏洞
漏洞名称: phpMyAdmin 完整路径泄露漏洞 CNNVD编号: CNNVD-201307-650 发布时间: 2013-08-09 更新时间: 2013-08-09 危害等级: 中危 漏洞类 ...
- 《精通CSS:高级Web标准解决方案》学习笔记(下)
1. background-position: left center; 两个参数分别是x和y轴方向的position 2. background-position: 10% 20%; 用百分数表示时 ...
- ArrayList 、Vector、 LinkList
public class TestList { public static void init(List list) { if(list!=null) ...
- denyhost
1. denyhost 简介及ssh安全 对外提供的服务器,每天都会被恶意扫描,试图暴力穷举密码,达到入侵的目的.从而控***务器,占用资源.网页挂马.垃圾广告.更会影响我们业务的正常使用和数据的安全 ...
- E - 食物链 poj1182
题目告诉有 3 种动物,互相吃与被吃,现在告诉你 m 句话,其中有真有假,叫你判断假的个数 ( 如果前面没有与当前话冲突的,即认为其为真话 ).每句话开始都有三个数 D A B,当D = ...
- 网站搬家后,UC通信失败解决方法
把应用里边的UC设置信息,类似如下的,复制覆盖config/config_ucenter.php里边的全部信息,多个的话,放在相应的位置就好了 define('UC_CONNECT', 'mysql' ...