最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - CSS Resize handles with resize: both property - Stack Overflow

programmeradmin3浏览0评论

I'm using the CSS3 property:

resize: both;
overflow: none;

This puts a resize handle in the bottom right corner of the element.

My first question is: can I put other handles on the element using this CSS property? ie Can I put a handle in the right edge? I understand this wouldn't always work unless the element is absolutely positioned.

Second question is: Can I style the handles to be something more specific to my app?

I cannot use jQuery resizable; I tested it with what I am trying to do (Div within CKEditor) and it doesn't work. Perhaps an alternative plugin if no one has a solution to the above questions?

I'm using the CSS3 property:

resize: both;
overflow: none;

This puts a resize handle in the bottom right corner of the element.

My first question is: can I put other handles on the element using this CSS property? ie Can I put a handle in the right edge? I understand this wouldn't always work unless the element is absolutely positioned.

Second question is: Can I style the handles to be something more specific to my app?

I cannot use jQuery resizable; I tested it with what I am trying to do (Div within CKEditor) and it doesn't work. Perhaps an alternative plugin if no one has a solution to the above questions?

Share Improve this question asked Nov 4, 2012 at 23:45 Michael BatesMichael Bates 1,9342 gold badges30 silver badges43 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

Check out this post it is the same question: HTML5/CSS3 - Change the look of resize handles

However what it es down to is that it is not possible to do it, however there is a workaround that is using a background image:

textarea {
  height: 300px;
  width: 300px;
  position: relative;
  background: #fff url(http://merchantmomphotoeditor./pixenate/docs/resize_handle2.gif) 100% 100% no-repeat;
}

see http://jsfiddle/q5kdr/

发布评论

评论列表(0)

  1. 暂无评论