0
由於某種原因,image etf.jpg不會顯示,我真的認爲它與URL無關。當我按住並點擊NetBeans中的圖像時,它顯示圖片就好了。它與插入標籤有什麼關係?在JSF模板中沒有顯示html圖片
!This is file organisation of the project 1
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Facelet Title</title>
</h:head>
<style>
div1{
position: absolute;
background-color: lightblue;
font-family: arial;
font-size: 75px;
text-align: center;
top: 0px;
font-weight: bold;
left: 0%;
width: 100%;
height: 17%;
color: lightslategray;
}
div2{
position: absolute;
top: 20%;
font-family: arial;
}
div3{
background-color: red;
font-family: arial;
position: absolute;
bottom: 0%;
width: 100%;
left: 0%;
font-style: italic;
font-weight: lighter;
height: 15%;
color: lightslategray;
text-align: right;
}
</style>
<h:body>
<div1>
<ui:insert name="header">
<ui:include src = "header.xhtml"/>
</ui:insert>
</div1>
<div2>
<ui:insert name="content">
<ui:include src ="defaultContent.xhtml"/>
</ui:insert>
</div2>
<div3>
<ui:insert name="footer">
<img src="../img/etf.jpg"/>
<div4><ui:include src = "contact.xhtml"/></div4>
</ui:insert>
</div3>
</h:body>
我認爲你可以調試更多...它是從哪裏加載的,什麼是網址,應該是什麼網址和更多... – Kukeltje
風格是否有理由在頭之外? –