[英]how to make this div not resizeable and draggable on firefox using contenteditable=true
this is my code: 这是我的代码:
<div contenteditable=true style="position:absolute;top:300px;width:200px;height:300px;background:red;color:black;">
ddwwwwwwwwwwwwwwwwwwwww
</div>
i use contenteditable=true
to make the div editable, but it also can resizeable and draggable on firefox , 我使用
contenteditable=true
来使div可编辑,但它也可以在firefox上调整大小和可拖动,
so how to make it not resizeable and draggable 所以如何使它不可调整和可拖动
thanks 谢谢
Put the contenteditable div inside another that has the positioning you want: 将contenteditable div放在另一个具有您想要的定位的div中:
<div style="position:absolute;top:300px;width:200px;height:300px;background:red;color:black;">
<div contenteditable=true>
ddwwwwwwwwwwwwwwwwwwwww
</div>
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.