textFit让文字放大填充满容器效果代码
代码语言:html
所属分类:布局界面
代码描述:textFit让文字放大填充满容器效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/textFit.min.js"></script> </head> <body style="display:flex;"> <div style="width:300px;height:300px;border:1px solid"> This text <br> Has multiple lines <br> Fit me! </div> <div class="box" style="width:300px;height:300px;border:1px solid"> This text <br> Has multiple lines <br> Fit me! </div> <div class="hbox" style="width:300px;height:300px"> Th.........完整代码请登录后点击上方下载按钮下载查看
网友评论0