javascript - scaling large image to fit screen width using angular -
i scale large image's height/width using angularjs fits screen on multiple devices (responsive). website example of trying accomplish.
does angular have directive can handle or need create directive or factory accomplish task? has tried wurfl image tailor (wit)?
in cases, don't need angularjs @ all. can accomplished css alone, using background-size property.
for example, in order scale width:
.bg { background-size: 100% auto; } and scale height:
.bg { background-size: auto 100%; }
Comments
Post a Comment