设置网站的背景图片 [英] Set background image for website

查看:81
本文介绍了设置网站的背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

如何设置网页的背景图像.这是我的图像名称Skyblue.jpg.


我需要将此图像作为网页的背景图像.


请帮忙谢谢.

Dear All,

How to set the background Image for Webpage. this is my image name Skyblue.jpg.


I need this Image as background image for my webpage.


Please help thanks.

推荐答案

<body style="background-image:url(bgr.jpg);">
...
</body>




(或)

使用CSS.如果您正在使用主题或CSS文件,请添加到主题...




(or)

Use CSS. Add to the theme if you''re using one, or a CSS file...

body {
  background-image: url(images/image.png);
}


最佳做法建议将此文件保存在单独的文件中,而不要放在文档的开头,并且最好不要内联.


Best practices recommend having this in a separate file, rather than the head of the document - and most certainly not inline.


这篇关于设置网站的背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆