[英]how to make this div draggable on chrome like on firefox
this is the code: 这是代码:
<div contenteditable=true style="position:absolute;">dddw</div>
this code can be draggable on firefox , but cant on chrome , 此代码可以在firefox上拖动,但不能在chrome上拖动,
so how to make it draggable on chrome 那么如何使其在chrome上可拖动
thanks 谢谢
The resizing "handles" are managed differently so it will cause a noticeably different look between the browsers, however, you can get resize in Chrome using CSS3 resize attribute in combination with overflow:auto. 调整大小的“句柄”的管理方式不同,因此,它们在浏览器之间的外观会明显不同,但是,您可以使用CSS3的resize属性和overflow:auto在Chrome中调整大小。 (Firefox doesn't pick up on these, but its already being done by the ContentEditable as it adds a -moz-resizing="true" attribute to the element when it gets clicked.) (Firefox不会处理这些问题,但是ContentEditable已经完成了它,因为它在单击时会向元素添加-moz-resizing =“ true”属性。)
<div contenteditable=true style="resize:both;overflow:auto; position:absolute;">dddw</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.