17:14 2016/3/22
IMG Only shows part of the picture or CSS settings background picture only display picture specified area
background-position:100% 56%; Set the background picture to show which coordinate area of the picture, the top left corner is 0, 0 or 0%, 0%, the lower right corner is height and width, or 100%, 100%.
Clip:rect (300px 100px 300px 0px); Set an area of the display picture, which is the order of the upper right and bottom left
Part of the code:
<style type= "Text/css" >
Img
{
Position:absolute;
Clip:rect (30px 150px 200px 50px)
}
</style>
Reference: Http://www.w3school.com.cn/tiy/t.asp?f=csse_clip
Body
{
Background-image:url (' bgimage.gif ');
Background-repeat:no-repeat;
background-attachment:fixed;
Background-position:center;
}
Reference: http://www.zgguan.com/doc/w3c/css/pr_background-position.asp.htm
Please like:
For you to help please praise, please the top, not good please step------send people roses, hand to leave the fragrance!
IMG Only shows part of the picture or CSS settings background picture only display picture specified area