Home  >  Article  >  Web Front-end  >  disabled和readonly的区别是什么_html/css_WEB-ITnose

disabled和readonly的区别是什么_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:36:59915browse

disabled和readonly的区别是什么:
这两个属性有类似之处,但是区别也是巨大的,之所以说类似,是因为这两个属性好像都貌似能够将指定的元素设置为"不可用"状态,下面就简单介绍一下它们两个的区别,希望能够给大家带来一定的帮助。
一.作用范围不同:
disabled属性可以用语所有的表单元素。
readonly属性只对

原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=9495

Statement:
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 admin@php.cn