javascript - 我如何将我的 Logo 放在空间背景的顶部?

标签 javascript html css layer

http://codepen.io/anon/pen/WbdaVB

Check the codepen.io for code. Sorry, new to Stack Overflow, please don't hurt me if I'm doing it wrong. ;-;

我的 Logo ( http://i.imgur.com/CIwEPgT.png ) 已经在代码中了,但是有人可以让我的 Logo 位于空间背景的前面吗?

谢谢。 英里。

最佳答案

首先使用 class="logo" 定位图像标签,您还需要在 src 中使用双引号 (""),而不是 ¨¨

<img  class="logo" src="http://i.imgur.com/CIwEPgT.png">

他们在您的 CSS 中添加:

.logo {
  position: relative;
  z-index: 9999;
}

http://codepen.io/anon/pen/zxRmWO

关于javascript - 我如何将我的 Logo 放在空间背景的顶部?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28533942/

相关文章:

javascript - 如何使用javascript将可整除数存储在新数组中

javascript - 我的 jQuery 在 Chrome 中工作,但在 IE 11 中不工作

javascript - 在 cordva ios 应用程序中查看另一个网页中的网页

javascript - 如何使用 aria-label 和 aria-labelledby 从读者那里获得可见和不可见(定制)的值(value)?

html - 将一个 div 垂直对齐到另一个 div 旁边

html - 使用十进制像素和 css 过渡的图像渲染

jquery - CSS cubic-bezier 过渡导致下面的内容跳转

javascript - 如何阻止 jQuery.ajax() 将失败记录到控制台?

javascript - 无法从复选框接收数据

javascript - JW Player smarty 不工作