Home >Web Front-end >HTML Tutorial >css makes the picture automatically adapt to the width change of the div---solve the maximum width problem_html/css_WEB-ITnose
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/