box-size
<style>
*{ margin:0; padding:0; list-style:none; font-family:"\5FAE\8F6F\96C5\9ED1";}
.content_box{
box-sizing:content-box;
-webkit-box-sizing:content-box;
width: 100px;
height: 100px;
padding: 20px;
border: 5px solid #E6A43F;
background: blue;
}
.padding_box{
box-sizing:padding-box;
-webkit-box-sizing:padding-box;
width: 100px;
height: 100px;
padding: 20px;
border: 5px solid #186645;
background: red;
}
.border_box{
box-sizing:border-box;
-webkit-box-sizing:border-box;
width: 100px;
height: 100px;
padding: 20px;
border: 5px solid #E6A43F;
background: green;
}
</style>
火狐下的效果↓
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMYAAAF9CAIAAADQg4AIAAAP1ElEQVR4nO2dTY4kuZFG7QDdlRHuJM1ImjndI6KySt0jdUuCfnZazVXmHAL6KjqJLtE30HpuELPwVGqh0FSj0gAnE9/Dd4BA+AOdbjSSdAopSuGi8tPP/wvAm6E5Zc6aMpQCPlAqGqWILlAKuEBTFKmWtUEp4AJ98zRxsX0u9XcA3gzNKZ8C12WVn37+x9/+ggydeweQqAXO+/T88H8EeWOO1ul+v98pFZ2SPE0BSr2DHK3T/X6/U+ACpd5Njtbpfr/f6Rz4NKfABUq9gxyt0/3++uKbIv+7UkR3pPP0qJStVy72YZqh1IjpUamY9TSnKWCUGjI9KpWKclZtG5QaMT0qFbj8p7rU4f8X8sX0qNRePX9YRDj8/0K+mB6V4mqnwN88TVBqxPSoVLEWOH97hlJDpkelApdzZHzxDZoelZpTfpriw+r54f8X8sX0qFS1NXCOUqHUiOlRqac5zvx42fjw/wv5YnpUaoryukMGSg2XHpUKUrM1rgalRkyPSp0DzywYpQZNj0oFqR/OoViDUiOmR6Vi/tc+Pig1XHpUaooys8ycodSI6VGpVPRpilBq0PSolKhxVsylBk2PSu0vPvRLDZoelbLtJrqg93zQ9KhUu37krFg2HjQ9KhW4nAJj09Wg6VGpfTsDlo0HTY9KFWtcDKXOQdOjUqnozILp+aDpUSlbr8VWtOANmk6VsvWK3v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kFExGMgomIxkFk5GMgq299/Qb7PKTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQX7B6xsruuBKOmzAAAAAElFTkSuQmCC" alt="" />
padding-box 只有在火狐下起作用
box-size的更多相关文章
- CSS3 - 盒子的 box - size
两个参数: border-box和content-box <!DOCTYPE html> <html lang="en"> <head> < ...
- mp4封装格式各box类型讲解及IBP帧计算
mp4封装格式各box类型讲解及IBP帧计算 目录 mp4封装格式各box类型讲解及IBP帧计算 box ftyp box moov box mvhd box (Movie Header Box) t ...
- CSS Box Model All In One
CSS Box Model All In One CSS 盒子模型 All In One CSS Box Model CSS Box Model Module Level 3 W3C Working ...
- how to change svg polygon size by update it's points in js
how to change svg polygon size by update it's points in js matrixTransform https://stackoverflow.com ...
- [CC]LOD技术
ccGLWindow::paintGL() | ccGLWindow::fullRenderingPass(...) | ccGLWindow::drawBackground(context, ren ...
- Making my own Autonomous Robot in ROS / Gazebo, Day 1: Building the static model
Day 1: Setting up ROS: Indigo OS: Ubuntu 14.04 OS: Gazebo 7.0.0 Initialize the workspace To create t ...
- python画图
正弦图像: #coding:utf-8import numpy as npimport matplotlib.pyplot as pltx=np.linspace(0,10,1000)y=np.sin ...
- 创建简单的机器人模型smartcar
前面我们使用的是已有的机器人模型进行仿真,这一节我们将建立一个简单的智能车机器人 smartcar,为后面建立复杂机器人打下基础. 一.创建硬件描述包. cd ~/catkin_ws/srcroscr ...
- [译]ASP.NET 5: New configuration files and containers
原文:http://gunnarpeipman.com/2014/11/asp-net-5-new-configuration-files-and-containers/ ASP.NET vNext提 ...
- JS中的混合模式
function Animation(list) { this.box = document.getElementById(list.id); this.size = list.size; this. ...
随机推荐
- 快速提高Android开发调试的使用技巧
留在这里备忘,同时如果对其他人有帮助,那就再好不过了. 1.过滤Android程序出现的异常和崩溃 adb logcat |grep --color=auto -E "System.err| ...
- 350 - Pseudo-Random Numbers
Pseudo-Random Numbers Computers normally cannot generate really random numbers, but frequently are ...
- 创建 OVS vlan100 netwrok - 每天5分钟玩转 OpenStack(137)
上一节完成了 OVS vlan network 的配置准备工作,今天我们创建 vlan100.打开菜单 Admin -> Networks,点击 "Create Network&quo ...
- Cocos2dx使用网络图片
#ifndef __Demo__Connection__ #define __Demo__Connection__ #include <iostream> #include "c ...
- 结构-行为-样式-JqueryUI拖放使用实例(全)
最近工作中有个需要是动态配置页面,想到之前公司有做过类似的,用的是JqueryUi,所以就看了下它的Api.下面就是我做的小Demo,想用的同学可以参考: Html: <div class=&q ...
- 使用gulp构建自动化工作流
简单易用 高效构建 高质量的生态圈 可能很多人会说现在提gulp也太落后了吧,但我想说写点东西并不是为了讨论它是否过时,而是来帮助我们自己来记忆.整理和学习.任何工具,我需要,我才去使用它,正如此时我 ...
- CA认证
nginx下证书配置 nginx 下 配 置 CA 认 证 为nginx配置https并自签名证书 开启443端口 实验环境: centos6.5 192.168.16.14 [ ...
- java的return区别
return ;和return null的区别在于:前者当方法返回值为void时候,return ; 跳出方法. 后者当方法的返回值为object对象时,return null,跳出方法,返回值为空值 ...
- Factory Pattern(工厂模式)
1.工厂模式简介 工厂模式,专门负责将大量有共同接口的类实例化(用来生产对象).其定义为定义一个用于创建对象的接口,让子类决定实例化那一个类.工厂方法使一个类的实例化延迟到其子类. 工厂模式拥有以下几 ...
- InnoDB的Named File Formats
随着InnoDB存储引擎的发展,新的页数据结构有时用来支持新的功能特性.比如前面提到的InnoDB Plugin,提供了新的页数据结构来支持表压缩功能,完全溢出的(Off page)大变长字符类型字段 ...