css指定裁剪区域代码

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
img { position:absolute;
clip: rect( 50px 200px auto auto );}
</style>
</head>

<body>
<img src="../../All Users/Documents/My Pictures/示例图片/Blue hills.jpg"  />
</body>
</html>

posted @ 2010-12-18 19:44  刘竹青  阅读(148)  评论(0编辑  收藏  举报