惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - puexine

解除一些网站利用【user-select: none;】禁止复制的限制! [nginx环境]Typecho安装在根目录与子目录的伪静态规则 使用 inline-block 水平垂直居中任意内容 Download VMware Workstation Pro Google Chrome离线安装包下载 谷歌浏览器下载 Windows Defender Manually download the latest updates 纯CSS实现:垂直居中,未知宽高,已知宽高,IE5除外所有浏览器均兼容 常用公共DNS服务器地址 用户中心 - 博客园 VMWare CentOS 6.5 安装vmware-tools 彻底删除卸载Windows XP自带的Windows Message Windows Media Player Firefox Plugin支持Windows Server 2003的方法 微软软件运行库整理下载 – .NET Framework、VC++库、DirectX等 PIN码PJ教程,reaver 使用方法和技巧 Reaver基本命令参数详解及应用 另辟蹊径,CSS设置垂直居中 css实现固定高度及未知高度文字垂直居中的完美解决方案 显示器驱动程序已停止响应 并且已成功恢复 来自星星的你
css3 box-sizing属性
puexine · 2016-03-14 · via 博客园 - puexine

box-sizing兼容性参考这里:

https://developer.mozilla.org/zh-CN/docs/Web/CSS/box-sizing

box-sizing说明:

box-sizing属性的三个值:content-box(default)、border-box、padding-box

content-box:border、padding不计入width

padding-box:padding计入width

border-box:border、padding都计入width(怪异模式)

box-sizing示例:

 1 .content-box{
 2     box-sizing:content-box;
 3     -moz-box-sizing:content-box;
 4     width: 100px;
 5     height: 100px;
 6     padding: 20px;
 7     border: 5px solid #E6A43F;
 8     background: blue;
 9 }
10 .padding-box{
11     box-sizing:padding-box;
12     -moz-box-sizing:padding-box;
13     width: 100px;
14     height: 100px;
15     padding: 20px;
16     border: 5px solid #186645;
17     background: red;                
18 }
19 .border-box{
20     box-sizing:border-box;
21     -moz-box-sizing:border-box;
22     width: 100px;
23     height: 100px;
24     padding: 20px;
25     border: 5px solid #3DA3EF;
26     background: yellow;
27 }