为什么画布在调整大小时会拉伸内容,我该如何处理呢?
Can you specify? What kind of canvas? For what I understand, I assume you are looking for manipulating the resize property of an element.
You can change this by specifying the object's resize propery:
<textarea style="resize: none;">
</textarea>
Unfortunately, this is a CSS3 property so only Mozilla and Webkit can support the resize property. You can check this out in http://www.w3schools.com/cssref/css3_pr_resize.asp
Allowed resize: none | both | horizontal | vertical
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.