将文字放在图像滑块上?

时间:2016-08-21 23:23:20

标签: css image text

我对我网站上的一些CSS工作有一个简单的问题。我需要帮助,将一些文字放在我的图片滑块(www.ininkk.com)上,就像它在页面横幅上的样子一样:http://www.instacool.com.au/white-ink-printing/(其中它表示"白色墨水打印" )。任何帮助将不胜感激。谢谢!

2 个答案:

答案 0 :(得分:0)

好的,你必须将文本位置设置为绝对值,如下所示:

[t1,x1] = ode45(f,[0 1],x0); % integrate from 0 to 1
save('data.mat'); % save workspace to file
% now you can turn off your computer
load('data.mat'); % load workspace from file
last = x1(end,:); % obtain the last state (the last row of x1)
[t2,x2] = ode45(f,[1 2],last); % integrate from 1 to 2
t = [t1;t2]; % concatenate results
x = [x1;x2];

答案 1 :(得分:0)

这是一个快速的代码,需要一些样式,但应该让你开始:

http://codepen.io/nilestanner/pen/LkoEZz

<div class="img-bg">
  <h2>some text</h2>
</div>

h2{
  padding:100px;
}

.img-bg{
  background:url('http://nilestanner.com/codepen/expanding-hover-tabs/vista-1.jpg');
    height:500px;
}
相关问题