<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+aDpUSlbr8VWtOANmk6VsvWK3vNB06N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MgomIxkFk5GMgq299/Qb7PKTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQWTkQX7B6xsruuBKOmzAAAAAElFTkSuQmCC" alt="" />

padding-box   只有在火狐下起作用

box-size的更多相关文章

  1. CSS3 - 盒子的 box - size

    两个参数: border-box和content-box <!DOCTYPE html> <html lang="en"> <head> < ...

  2. mp4封装格式各box类型讲解及IBP帧计算

    mp4封装格式各box类型讲解及IBP帧计算 目录 mp4封装格式各box类型讲解及IBP帧计算 box ftyp box moov box mvhd box (Movie Header Box) t ...

  3. 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 ...

  4. 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 ...

  5. [CC]LOD技术

    ccGLWindow::paintGL() | ccGLWindow::fullRenderingPass(...) | ccGLWindow::drawBackground(context, ren ...

  6. 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 ...

  7. python画图

    正弦图像: #coding:utf-8import numpy as npimport matplotlib.pyplot as pltx=np.linspace(0,10,1000)y=np.sin ...

  8. 创建简单的机器人模型smartcar

    前面我们使用的是已有的机器人模型进行仿真,这一节我们将建立一个简单的智能车机器人 smartcar,为后面建立复杂机器人打下基础. 一.创建硬件描述包. cd ~/catkin_ws/srcroscr ...

  9. [译]ASP.NET 5: New configuration files and containers

    原文:http://gunnarpeipman.com/2014/11/asp-net-5-new-configuration-files-and-containers/ ASP.NET vNext提 ...

  10. JS中的混合模式

    function Animation(list) { this.box = document.getElementById(list.id); this.size = list.size; this. ...

随机推荐

  1. 在C中判断变量存储类型(字符常量/数组/动态变量)

    在C中判断变量存储类型(字符常量/数组/动态变量) 在chinaunix论坛上有人问到关于变量存府类型的问题,我觉得可以写个测试代码加深大家对内存使用和布局的理解.下面我把原问题及处理办法贴出来,限供 ...

  2. C#中WindowsForm常见控件的运用

    C#中WindowsForm常见控件的运用 -- 1.button(曹操,贡天子以令不臣): 属性;text:我们经常可以看见将按钮命名为“登入”,在其属性面板里面编辑text即可:如下图:      ...

  3. 框架基础:ajax设计方案(三)---集成ajax上传技术

    之前发布了ajax的通用解决方案,核心的ajax发布请求,以及集成了轮询.这次去外国网站逛逛,然后发现了ajax level2的上传文件,所以就有了把ajax的上传文件集成进去的想法,ajax方案的l ...

  4. Oracle全角和半角处理函数

    1.TO_MULTI_BYTE语法: TO_MULTI_BYTE(String) 功能: 计算所有单字节字符都替换为等价的多字节字符的String.该函数只有当数据库字符集同时包含多字节和单字节的字符 ...

  5. java 异常处理机制及说明。

    又抄袭了一篇文章,其实就是想保存到自己的博客中而已,文章出处:http://www.cnblogs.com/LilianChen/p/4639471.html 1. 如何捕获异常 try { 可能会出 ...

  6. 【JS学习笔记】函数传参

    比如仅仅改变背景的颜色 函数传参:参数就是占位符. 那么在什么时候用传参呢?函数里定不下来的东西. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1 ...

  7. mysqldump 备份直接至压缩文件,提高备份及压缩时间

    1.备份及压缩分开 备份mysqldump --single-transaction -hlocalhost --all-databases --triggers --routines --event ...

  8. servlet笔记,配置与 http相关

    tomcat配置环境变量:        JAVA_HOME= 指向你的jdk的主目录(bin目录的上一层) server.xml: <Context path="/myweb2&qu ...

  9. JavaScript的Array.prototype.filter()详解

    摘抄与:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/filter 概述 ...

  10. To the end

    身为一名初二狗的我也走过了半年.不管怎么说人生中也没有几个半年嘛.从九月到现在快四个月了,我也离中考越来越近了/郁闷/.但是还是要好好过唔.不过我想起这半学期还是挺充实的,至少没有浪费太多的时间.有些 ...