我们可以使DIV只读吗 [英] can we make DIV Read only

查看:541
本文介绍了我们可以使DIV只读吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使只读div以及如何使用Java脚本取消读取.

How to make read only div, and how to unread it using java script.

推荐答案

您不能.默认情况下,DIV没有读取或写入属性,也没有属性.因此,您可以创建一个div并将其放入其中,但不能使div为只读".默认情况下,它不是读写的,只是其他内容的容器.
You can''t. A DIV has no read or write property, and no properties at all, by default. So, you can create a div and put things in it, but you can''t make the div ''read only''. It''s not read or write by default, it''s just a container for other content.


这篇关于我们可以使DIV只读吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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