css - outline 和 border CSS 属性有什么区别?

标签 css border outline

CSS 中的 borderoutline 属性有什么区别?

如果没有区别,那为什么同一个东西有两个属性呢?

最佳答案

发件人:http://webdesign.about.com/od/advancedcss/a/outline_style.htm

The CSS outline property is a confusing property. When you first learn about it, it's hard to understand how it is even remotely different from the border property. The W3C explains it as having the following differences:

  1. Outlines do not take up space.

  2. Outlines may be non-rectangular.

关于css - outline 和 border CSS 属性有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1158515/

相关文章:

wpf - 使用 WPF 着色器进行文本大纲

css - IE 6/7 大纲属性的替代方案

javascript - HTML 中的 2 列图书 View

html - CSS 对齐表格

css - 设置浏览器的媒体类型

css - 1px 边框搞乱了 100% 宽度的分页

python - 创建代码大纲的库

asp.net - div 或 asp :Panel background image

java - 为按钮添加边框使其变小

css - 需要帮助修复网站主页上的 css 或样式表