Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 向上移动图标并与我的主标题对齐_Html_Css_Twitter Bootstrap - Fatal编程技术网

Html 向上移动图标并与我的主标题对齐

Html 向上移动图标并与我的主标题对齐,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,我试图在导航栏的顶部移动我的主图标。我正在使用引导和一个名为“Site.css”的普通css文件 在我的主页中,我通过以下方式记录文件: <link href="Content/Site.css" rel="stylesheet" /> <link href="Content/bootstrap.css" rel="stylesheet" /> 但是有了这个,什么也没有发生。。它不会移动:(您正在使用错误的选择器语法访问该类。请在选择器上添加一个点 .IconFront

我试图在导航栏的顶部移动我的主图标。我正在使用引导和一个名为“Site.css”的普通css文件

在我的主页中,我通过以下方式记录文件:

<link href="Content/Site.css" rel="stylesheet" />
<link href="Content/bootstrap.css" rel="stylesheet" />

但是有了这个,什么也没有发生。。它不会移动:(

您正在使用错误的选择器语法访问该类。请在选择器上添加一个点

.IconFront {
  position:absolute; 
}

.img1 {
  position:relative; 
  top:10px; 
  left:0px; 
}

呸..有时候最小的错误就是造成问题哈哈..没看到:我们所有人都会这样,米克尔:)
IconFront {
position:absolute; 
}

img1 {
position:relative; 
top:10px; 
left:0px; 
}
.IconFront {
  position:absolute; 
}

.img1 {
  position:relative; 
  top:10px; 
  left:0px; 
}