I use a editor to upload photo and resize for my content. But found an issues. When a photo resized then img-responsive won't work correctly editor will add a style to tag.
Like this
<img class="img-responsive" src="/images/12d79e0f6124c89a380e89d7de0cc37b.jpg" style="width: 351px; height: 557.005px;">
When access site from mobile, image not responsive
I need to keep image size from image resizer (from text editor) but still can responsive.
use this class
.img-responsive{
width:100% !important;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.