摘要:
背景:java通过String.format(,)可将文本内容模板化,可用字符串替换前面 例如 String.format("hi %s","张三”),会用张三替换%s的内容。 %在格式化时有特殊意义,那如果我就要用%怎么办?例如html中的width:100% 例子:String.format(" 阅读全文
posted @ 2021-01-25 20:26
每天1990
阅读(14093)
评论(2)
推荐(1)
摘要:
使用 vh去设置div高度占比 例如: <div style="background-color: black;height: 90vh" v-html="log"> <div style="padding-bottom: 200px;">{{log}}</div> </div> height:90 阅读全文
posted @ 2021-01-25 20:24
每天1990
阅读(2343)
评论(0)
推荐(0)