Home > Web Front-end > HTML Tutorial > [Help] How to display only part of the image in the img tag_html/css_WEB-ITnose

[Help] How to display only part of the image in the img tag_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:24:16
Original
1672 people have browsed it

Because there are too many pictures, I can’t process them one by one, because the pictures are a bit large and will affect the layout when placed on the web page. I want to hide the 200px position on the left side of the picture. Can I do it? Thank you


Reply to discussion (solution)

1. Change to background:url(xxxx) -200px
2. Parent relative positioning, img absolute positioning, left=-200px

Please refer to
http://www.w3school.com.cn/css/pr_pos_clip.asp

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template