css makes the picture automatically adapt to the width change of the div---solve the maximum width problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:27:52
Original
1387 people have browsed it

Define IMG
img {width:expression(document.body.clientWidth>600?"600px":"auto");
max-width:600px;} //ie6/7
(Qingyuan Webmaster Tutorial NetworkWww.XiuGoo.Com)
img {max-width:600px;} //ff

This article comes from: (Qingyuan Webmaster Tutorial) Net)

My Taobao: http://shop58816553.taobao.com/

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