【发布时间】:2011-10-01 11:18:37
【问题描述】:
我需要有关 Facelets 的帮助,特别是 HTML 标记中的 jsfc 属性。如果以下方法可行,我很难理解。
<head jsfc="h:head">
<ui:insert name="head"/>
<base href="http://localhost:8080/Jerel-Baker/"/>
<link jsfc="h:link" rel='stylesheet' type='text/css' href='styles/style.css'/>
<link jsfc="h:link" rel='stylesheet' media='screen and (max-width: 700px)' href='styles/narrow.css'
type="text/css"/>
<link rel='stylesheet' media='screen and (min-width: 701px) and (max-width: 900px)'
href='styles/medium.css' type="text/css"/>
<link rel='stylesheet' media='screen and (min-width: 901px)' href="styles/wide.css" type="text/css"/>
<title>#{msg.title}</title>
</head>
当我在每个链接元素中添加 jsfc="h:link" 时,不会呈现 css。我将不胜感激。
【问题讨论】: