1、CSS3中style word-break属性
| 值 | 描述 |
|---|---|
| normal | 使用浏览器默认的换行规则。 |
| break-all | 允许在单词内换行。 |
| keep-all | 只能在半角空格或连字符处换行。 |
2、FreeMarker
2.1 seq_contains 内置函数,用来判断List中时候包含指定值
2.2 assign声明对象
如:
<#--声明一个序列,包含若干个元素-->
<#assign x = ["red", 16, "blue", "cyan"]>
<#--使用seq_contains判断序列中的元素是否存在-->
"blue": ${x?seq_contains("blue")?string("yes", "no")}
"yellow": ${x?seq_contains("yellow")?string("yes", "no")}
16: ${x?seq_contains(16)?string("yes", "no")}
"16": ${x?seq_contains("16")?string("yes", "no")}
本文介绍CSS3中word-break属性的用法及其不同值的效果,并演示了FreeMarker的seq_contains函数如何用于检查列表中是否存在特定项。
1531

被折叠的 条评论
为什么被折叠?



