I have wrote code like that:
<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>
How can I get the property 'clip'
and change it with javascript?
Just like $('#rect').css( 'clip', '...' )
with jQuery.
It can not be change by element.style.clipRight = ''
or element.style.clip = ''
.