轮廓和边框之间的差异 [英] Difference between outline and border

查看:166
本文介绍了轮廓和边框之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道CSS中的'border'和'outline'属性有什么区别吗?

Does anybody know of any difference between 'border' and 'outline' properties in CSS? If there is no difference, then why are there two properties for the same thing?

推荐答案

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


CSS outline属性是一个混乱的属性。当你第一次了解它,很难理解它是如何远离不同的边界属性。 W3C将其解释为具有以下差异:

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.概要不占用空间。

1.Outlines do not take up space.

2 。轮廓可以是非矩形。

2.Outlines may be non-rectangular.

这篇关于轮廓和边框之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆