我为prime-faces创建了css文件,我已经厌倦了制作它但没有工作。
这是我的 style.css 文件
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
<style type="text/css">
*{
padding:0px;
margin:0px;
}
body{
background-color:#ffffff;
}
.head1{
background-repeat:repeat-x;
background-image: url('images/rd-el_03.png');
height:174px;
}
.head2{
background-image: url('images/rd-el_02.png');
width:364px;
height:174px;
margin-left:auto;
margin-right:auto;
background-repeat:no-repeat;
}
img{
border:0;
}
.footer1{
background-image: url('images/rd-el_07.png');
height:87px;
background-repeat:repeat-x;
}
.footer2{
background-image: url('images/rd-el_06.png');
float:left;
width:89px;
height:87px;
background-repeat:no-repeat;
}
.footer3{
background-image: url('images/rd-el_09.png');
width:272px;
height:87px;
float:right;
background-repeat:no-repeat;
}
</style>
</head>
<body>
<div class="head1">
<div class="head2"></div>
</div>
<div class="footer1">
<a href="http://tl4s.com.sa" title="تصميم منتدى"><div class="footer2"></div></a>
<div class="footer3"></div>
</div>
</body>
</html>
这个 style.css 在 WebContent |-- resources | 下 -- css
|
-- 样式.css:
我已将此代码放在我的 xhtml 文件中,但没有运气
<h:head>
<h:outputStylesheet name="css/styles.css" />
</h:head>