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

推荐订阅源

云风的 BLOG
云风的 BLOG
S
Security Affairs
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cyberwarzone
Cyberwarzone
Latest news
Latest news
Simon Willison's Weblog
Simon Willison's Weblog
NISL@THU
NISL@THU
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园_首页
人人都是产品经理
人人都是产品经理
Project Zero
Project Zero
S
Schneier on Security
Recorded Future
Recorded Future
N
News and Events Feed by Topic
T
The Exploit Database - CXSecurity.com
博客园 - 【当耐特】
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
G
GRAHAM CLULEY
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Engineering at Meta
Engineering at Meta
M
MIT News - Artificial intelligence
The Last Watchdog
The Last Watchdog
B
Blog
V
Visual Studio Blog
MongoDB | Blog
MongoDB | Blog
量子位
A
Arctic Wolf
Cloudbric
Cloudbric
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Cybersecurity and Infrastructure Security Agency CISA
爱范儿
爱范儿
Recent Announcements
Recent Announcements
GbyAI
GbyAI
P
Palo Alto Networks Blog
D
DataBreaches.Net
H
Help Net Security
AI
AI
博客园 - 叶小钗

博客园 - Juniy

DedeCms 模板学习1 在asp.net页面中传递中文参数 - Juniy - 博客园 sqldatasource连接excel 2003 - Juniy - 博客园 SSI与SHTML学习 AjaxPro(ajax架构)在ASP.NET中的使用 常用命令备忘 .NET 实现ISAPI过滤器,指定类型文件防下载 ASP.NET"正在中止线程"错误原因 将用户重定向到另一页的几种方法 贝塞尔样条 PetShop4 下载地址 ASCII 非打印控制字符表 (摘抄)什么是反射机制 (摘抄)禁止搜索引擎收录的方法(robots.txt文件的使用) (摘抄)DIV布局和网页设计 ASP.NET(C#)文件读写函数 C#中using的使用 修改url前图标(网上查到) JavaScript小技巧一
DIV盒子的CSS平面图
Juniy · 2009-07-12 · via 博客园 - Juniy

Xhtml网页有人说像盒子一样的,通过DIV把内容信息封装起来的结构网页,在可视的结构中各元素被呈现为了二维平面。图解如下:

CSS 元素属性图解
CSS二维平面图解

下面我们来详细分解下:
最内的白色区为内容信息展示区,可以是图片也可以是文字,而内容呈现区由高度(height)、宽度(width)来控制;内容呈现区域被外层矩形补白(padding)(灰色区)包围着,该层不能设置颜色,但是是透明呈现内容的背景色;接着是CSS元素的边框(border)(红色区域),这是外框边框可设置宽度和颜色、实线、虚线等样式;最外层白色区域虚线与红色区间是边界距离(margin),它与元素的外部相邻的盒子间距也是无色透明也无颜色设置样式。