【发布时间】:2013-10-22 13:06:15
【问题描述】:
是否可以在 html 中添加背景图片?
这是我的小提琴,我需要它在“容器 div”上
我还需要背景在画布上伸展,我可以在 css 中这样做吗??
<div id="profile-container">
<div id="fixed-header"></div>
<div class="container" style="background: url("../../img/followers/followers-tabs.png") no-repeat 0 0px;"></div>
<div class="sticky-header">This needs to be fixed when hits top of screen</div>
<div class="img">needs to be smooth</div>
<div class="img"></div>
<div class="img"></div>
</div>
干杯
【问题讨论】:
-
修正你的报价:
"background: url("../../img/followers/followers-tabs.png") no-repeat 0 0px;"到"background: url('../../img/followers/followers-tabs.png') no-repeat 0 0px;" -
你能加个小提琴吗?
-
来吧,这对于每个开发人员来说都是绝对基础的,而且它只是一个 10 秒的谷歌搜索。
标签: html css background