border:0和border:none的区别是什么_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:19
Original
1304 people have browsed it

border:0和border:none的区别是什么:
将对象的的边框设置border:0和border:none的效果是一样的,都可以将边框取消,代码实例如下:

蚂蚁部落
Copy after login

以上代码的运行可以看出,通过将边框设置为0或者none都可以取消边框,从外观上两者是一样的,但是还是有很大不同。border:0可以将边框的宽度设置为零,尽管视觉上看不到了,但是浏览器还是会渲染的,border:none直接是没有边框,浏览器不会去渲染。所以说设置为none执行效果稍高一些,当然这个差距基本忽略不计。

原文地址是:http://www.51texiao.cn/div_cssjiaocheng/2015/0501/508.html

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!