I have this div (id="myDiv"), when the div is under css - scale all it's children are under scale as well. I need the div to enlarge but not the children, in a "creative way" i tried 2 things which didn't work..
how to scale a div without scaling it's content ?
HTML
<div id="myDiv">
<h3>Song</h3>
<p>
Strawberry fields forever
</p>
<div>
jQuery
$("#myDiv").css("transform", "scale(2,3)");
//I tried to...
$("#myDiv").children().css("transform", "scale(-2,-3)");
$("#myDiv").children().css("transform", "scale(0,0)");
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…