I've tried everything I can find.
I'm trying to keep an image from overflowing outside the div that it is inside.
I've tried:
div.row #whoPic {
object-fit: contain;
max-width: 100%;
max-height: 100%;
overflow: hidden;
max-width: auto;
max-height: auto;
max-width: 300px;
max-height: 300px;
}
...and many variations of each of those values.
I've also tried targeting all img's, as well as targeting very precisely.
Please help me out. Going nuts here.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…