2017年1月4日 星期三

font-size css auto

Pure CSS to make font-size responsive based on dynamic amount of characters
Responsive Font Size
----
讓字體隨視窗尺寸放大縮小,控制碼:

CSS3 supports new dimensions that are relative to view port. But this doesn't work in android < 4.4

3.2vw = 3.2% of width of viewport
3.2vh = 3.2% of height of viewport
3.2vmin = Smaller of 3.2vw or 3.2vh
3.2vmax = Bigger of 3.2vw or 3.2vh

沒有留言:

張貼留言