Html 如何在jsf中使用CSS在h:body标记中显示背景图像

Html 如何在jsf中使用CSS在h:body标记中显示背景图像,html,css,image,jsf,background-image,Html,Css,Image,Jsf,Background Image,我有一张250 x 25的照片 我想在页面背景中显示repeat-x和repeat-y 但下面的方法不起作用 <h:body styel="background: url(/Images/logoback.jpg) repeat-x repeat- y > 错误太多了 style而非style 不关闭“双引号 如果你想在水平方向和垂直方向重复,只需在背景图像之后使用repeat 在每个propery:value; 试试这个

我有一张250 x 25的照片

我想在页面背景中显示repeat-x和repeat-y

但下面的方法不起作用

<h:body styel="background: url(/Images/logoback.jpg) repeat-x repeat- y > 
错误太多了

  • style
    而非
    style
  • 不关闭
    双引号
  • 如果你想在水平方向和垂直方向重复,只需在背景图像之后使用
    repeat
  • 在每个
    propery:value;
    试试这个