<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
我的 joomla 模板中有一个模块,我想将它的标题添加到图像中。 我不知道如何让它响应? (我的模块的内容是响应式的,但图像标题不是)。
这是我的代码:
.t3-module.module.map1-title{
background: rgba(0, 0, 0, 0) url(".../.../images/pages.png") no-repeat scroll 0 0;
background-size:auto;
}
最佳答案
参见示例:fiddle
HTML:
<div id="one"></div>
CSS:
html, body{width:100%; height:100%; padding:0px; margin:0px;}
#one{width:100%; height:100%; background:url(http://www.keenthemes.com/preview/metronic/theme/assets/global/plugins/jcrop/demos/demo_files/image1.jpg) left top no-repeat; background-size: 100%;}
关于html - 制作响应标题背景div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34087100/