Warning: This property is deprecated. Use clip-path
instead.
The clip
property sets a rectangle to
clip an absolutely positioned element.
The rectangle is specified as four coordinates, from the top-left corner of the element to be clipped.
clip: auto|shape|initial|inherit;
clip |
Yes | 8.0 | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<head>
<style>
img {<!--from www . j ava2s. c om-->
position: absolute;
clip: rect(0px,60px,200px,0px);
}
</style>
</head>
<body>
<img src="http://java2s.com/style/demo/border.png" width="100" height="140">
</body>
</html>