如何在CSS中添加背景图片? [英] How to add background image in css?
本文介绍了如何在CSS中添加背景图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在CSS代码中添加背景图片,但未加载. 如何在CSS中更改或添加背景图片,请帮助 我用notpad ++编写CSS代码
I want to add background image in my css code but it's not loading. How to change or add background image in css please help I'm written css code in notpad++
推荐答案
.Your class name {
background-image: url("your image url");
background-repeat: no-repeat;
background-size: 100% 100%;
float: left;
width: auto;
}
请在您的CSS部分中尝试上面的代码类型.
Please try Above type of code in your css section.
这篇关于如何在CSS中添加背景图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文