SmartFAQ由SmartFactory开发(https://www.smartfactory.ca),是InBox Solutions(https://www.inboxsolutions.net)的部门

如何阻止背景图片重复或滚动?
设置页面背景图片的一种方法是将body元素中的bgsrc属性设置为以下示例:页面正文内容。问题在于,如果页面长度够长或宽度够宽,背景图像background.png将被在整个页面中重复(瓷砖)。另外,如果用户滚动页面,背景图片也会滚动。如果您希望这两者都不发生,您则需要使用样式而不是bgsrc属性
<body style="background-image: url(background.png); 
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;"
>
Body of page goes here
body>


评论归作者所有。我们不负责内容。


Login

Who's Online

283 user(s) are online (19 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 283


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

some modules are constantly being developed and updated while others need a new manager.

Random question

How do I make a custom block visible to both anoymous and registered users?