How can I get the property 'clip' in css and change it with javascript?

blackmagus88

New Member
I have wrote code like that:\[code\] <style> *{margin: 0 ; padding: 0;} html,body{height:100%} div#rect {background: #39c; width:100% ; height:100% ; clip: rect(200px 700px 400px 500px);position: fixed;} </style> <div id="rect"></div>\[/code\]How can I get the property \[code\]'clip'\[/code\] and change it with javascript?Just like \[code\]$('#rect').css( 'clip', '...' )\[/code\] with jQuery.It can not be change by \[code\]element.style.clipRight = ''\[/code\] or \[code\]element.style.clip = ''\[/code\].
 
Back
Top