pure-css

PureCss Responsive Images

时光毁灭记忆、已成空白 提交于 2019-12-23 04:43:42
问题 I am just trying to do my first page using purecss, what I am stuck at the moment is in using pure-img for having responsive images, the image are responsive when I reduce the screen but when the screen become bigger and the image are supposed to increase from their original dimension they just stay static in their original size. Can you please help me :) 回答1: Try: img { max-width: 100%; height: auto; } 回答2: The simplest way - just append width: 100% on your image. https://jsfiddle.net

Pure css change Big image on hover over thumbnails

风流意气都作罢 提交于 2019-12-12 04:46:33
问题 I have this html code: <div class="main-img"> <img id="main" src="http://i.ebayimg.com/00/s/NjU1WDgwMA==/z/HWIAAOSw8vZXMKGK/$_1.JPG?set_id=880000500F" alt="Teak Cleaner - 1lt bring back the original colour of teak/hardwood - Teak care" class="img-responsive main-image"> <p class="single-thumbnail-p"> <img src="http://i.ebayimg.com/00/s/NjU1WDgwMA==/z/HWIAAOSw8vZXMKGK/$_1.JPG?set_id=880000500F" class="img-responsive thumbnail" alt="Teak Cleaner - 1lt bring back the original colour of teak