Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/83.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_Header - Fatal编程技术网

Html 我的头球动了

Html 我的头球动了,html,header,Html,Header,我正试着在我的页面顶部放一个标题。它可以与IE 8配合使用。它稍微向下移动,在最新的IE和apple safari上阻挡了我的页面内容。有人能告诉我我需要放什么,这样它就可以兼容所有的搜索引擎吗?我是PHP,包括我所有页面的标题。下面是我的头代码 <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" conte

我正试着在我的页面顶部放一个标题。它可以与IE 8配合使用。它稍微向下移动,在最新的IE和apple safari上阻挡了我的页面内容。有人能告诉我我需要放什么,这样它就可以兼容所有的搜索引擎吗?我是PHP,包括我所有页面的标题。下面是我的头代码

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>

<body>

<div style="position: absolute; width: 1280px; height: 92px; z-index: 1; left: 1px; top: 0px" id="layer1">
    <div style="position: absolute; width: 660px; height: 22px; z-index: 1; left: 238px; top: 52px" id="layer2">
        <font face="Arial">|<b>
        <a href="http://www..net/carriers/test3.php">New Cost</a> </b>| <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </b>|<b> <a href="http://www..net/carriers/newcarrier.php">New 
        Carrier</a></b> | <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </b>|<b> <a href="http://www..net/carriers/search.php">Carrier 
        Board</a></b> | </font></div>
    <p>
    <img border="0" src="/carriers/.png" margin= 0 auto width="100%" height="73"></div>


</body>

</html>

|
|         
|  |         
|  | 


假设这是您正在谈论的标题

<img border="0" src="/carriers/echoheader.png" margin= 0 auto width="100%" height="73">
CSS:

尽量避免“内联样式”——这是直接在HTML中设置元素样式的地方


将样式从标记中分离是一种很好的做法,因为以后,在更复杂的页面中,您可以更轻松地找到自己的方法。

首先选中“不关闭”,然后选择一些html教程。提示1:不要使用
来创建间距。使用CSS。我建议你从学习CSS和html开始。你也可以做一些教程。谢谢,这是

。今天在电脑上呆的时间太长了!哈哈哈事实上,是@Jirka发现了……我的帖子是关于其他事情的有罪的:

<img class='header' />
img.header {
   position:absolute;
   top:0;
   ...other styles...
}