Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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
Can';t将我的背景集中在Firefox/IE-can';t在后台HTML上显示菜单_Html_Css - Fatal编程技术网

Can';t将我的背景集中在Firefox/IE-can';t在后台HTML上显示菜单

Can';t将我的背景集中在Firefox/IE-can';t在后台HTML上显示菜单,html,css,Html,Css,请我需要帮助,我有问题好的,首先是我的bacground图像在firefox或IE中没有显示centerd,但在chrome中效果很好,其次我有阿门努,我无法让它显示在我的背景图片上:下面我已经粘贴了我的Html代码和css,请帮助我,看一看,我真的很感激 <html> <head> <title>Just something</title> <meta http-equiv="Content-Type" content="text/ht

请我需要帮助,我有问题好的,首先是我的bacground图像在firefox或IE中没有显示centerd,但在chrome中效果很好,其次我有阿门努,我无法让它显示在我的背景图片上:下面我已经粘贴了我的Html代码和css,请帮助我,看一看,我真的很感激

<html>
<head>
<title>Just something</title>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="css/css.css" type="text/css" media="screen"/>




<!-- Start css3menu.com HEAD section -->
<link rel="stylesheet" href="bcg_files/css3menu1/style.css" type="text/css" />
<!-- End css3menu.com HEAD section -->

</head>

<body align="center" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div id="wrapper" >


        <div id="menu" class="menu" style="z-index:900;">
         <ul id="css3menu1" class="topmenu">
                                <li class="topfirst">
                                    <a href="#" title="Home" style="height:15px;line-height:15px;">Home</a>
                                </li>

                                <li class="topmenu">
                                    <a href="#" title="Product Information" style="height:15px;line-height:15px;">
                                        <span>Product Information</span>
                                    </a>
                                <ul>
                                    <li class="subfirst"><a href="#" title="MAXOFIX">MAXOFIX</a></li>
                                    <li><a href="#" title="Splicing">Splicing</a></li>
                                    <li><a href="#" title="Sidewalls">Sidewalls</a></li>
                                    <li><a href="#" title="Cleats">Cleats</a></li>
                                    <li><a href="#" title="Basebelts">Basebelts</a></li>
                                    <li><a href="#" title="Accessories">Accessories</a></li>
                                </ul>

                                </li>

                                <li class="topmenu">
                                    <a href="#" title="Downloads" style="height:15px;line-height:15px;">
                                        <span>Downloads</span>
                                    </a>
                                <ul>
                                    <li class="subfirst"><a href="#" title="Catalogues">Catalogues</a></li>
                                    <li><a href="#" title="Mobile App.">Mobile App.</a></li>
                                    <li><a href="#" title="Enquiries">Enquiries</a></li>
                                </ul>

              </li>
                                <li class="toplast"><a href="#" title="Contacts" style="height:15px;line-height:15px;">Contacts</a></li>
          </ul>

        </div>



<!--This where the menu will start -->
<!--img src="ok heres my img"  style="z-index:3;" align="middle" width="864" height="1152" alt=""-->  




<!-- The following Div's are for te boxes at the bottom of the page
     you can edit the text in the paragraph just as you want for the
     the ease of editing........lol -->

<!-- box left-->
            <div id="cc_content1" class="cc_content1">
                            <!--span id="cc_back" class="cc_back">&lt;&lt; Go back</span-->
                            <div class="cc_content_1">
                                    <h1>Advantages:</h1>
                                    <p>
                                        Space-saving Inclines of up to <br />
                                        90(and then that small 0) possible.<br />
                                        Belts are easy on material<br />
                                        transported.<br />
                                        Direction of feed and dis-<br />
                                        charge can be different.
                                        <br /><br />
                                        <a href="http://www.facebook.com" title="To what ever page it is that you want">More...</a>
                                    </p>
                            </div>

  </div>



<!--This ends box to the far left -->


<!-- box mid-->
<div id="cc_content" class="cc_content">
                        <!--span id="cc_back" class="cc_back">&lt;&lt; Go back</span-->
                        <div class="cc_content_1">
                            <h1>Products:</h1>
                            <p>
                                Space-saving Inclines of up to <br />
                                        90(and then that small 0) possible.<br />
                                        Belts are easy on material<br />
                                        transported.<br />
                                        Direction of feed and dis-<br />
                                        charge can be different.
                                        <br /><br />
                                        <a href="http://www.facebook.com" title="To what ever page it is that you want">More...</a>
                            </p>
                        </div>

  </div>

<!--This ends box in the midd -->




<!-- box right-->
            <div id="cc_content2" class="cc_content2">
                 <!--span id="cc_back" class="cc_back">&lt;&lt; Go back</span-->
                    <div class="cc_content_1">
                        <h1>News:</h1>
                        <p>  Space-saving Inclines of up to <br />
                                        90(and then that small 0) possible.<br />
                                        Belts are easy on material<br />
                                        transported.<br />
                                        Direction of feed and dis-<br />
                                        charge can be different.
                                        <br /><br />
                                        <a href="http://www.facebook.com" title="To what ever page it is that you want">More...</a>
                        </p>
                    </div>

            </div>
        <!--This ends box far right  -->         

</div>

</body>
</html>



HERE IS MY CSS


/* this is for the main page */

/*this is for the menu*/ 
.menu
{
    align:center;
    left:567px;
}



/*This is for the boxes at the bottom of the pag*/
.cc_content
{

    width:233px;
    height:236px;
    /*border-bottom:1px solid #000;*/
    position:absolute;
    left:567px;
    overflow:hidden;
    /*-moz-box-shadow:4px 0 7px #000;
    -webkit-box-shadow:4px 0 7px #000;
    box-shadow:4px 0 7px #000;*/
    top:876px;
}

.cc_content1
{
    width:233px;
    height:236px;
    /*border-bottom:1px solid #000;*/
    position:absolute;
    left:328px;
    overflow:hidden;
    /*-moz-box-shadow:4px 0 7px #000;
    -webkit-box-shadow:4px 0 7px #000;
    box-shadow:4px 0 7px #000;*/
    top:  876px;
}


.cc_content2
{
    width:233px;
    height:236px;
    /*border-bottom:1px solid #000;*/
    position:absolute;
    left:806px;
    overflow:hidden;
    /*-moz-box-shadow:4px 0 7px #000;
    -webkit-box-shadow:4px 0 7px #000;
    box-shadow:4px 0 7px #000;*/
    top:  876px;
}



/*This is for the content of the boxes exept the Header*/
.cc_content p
{
    background:none;
    text-align:left;
    padding-left:15px;
}

.cc_content1 p
{
    background:none;
    text-align:left;
    padding-left:15px;
}
.cc_content2 p
{
    background:none;
    text-align:left;
    padding-left:15px;
}





/*This is for the Header of the boxes*/
.cc_content h1
{
    text-align:left;
    padding-left:15px;
}

.cc_content1 h1
{
    text-align:left;
    padding-left:15px;
}

.cc_content2 h1
{
    text-align:left;
    padding-left:15px;
}


I HAVE A CUSTOM CSS3 MENU BUT I DONT THINK THAT IS THE PROBLEM..

只是一些
优势: 节省空间的斜坡高达
90(然后是小0)可能。
皮带的材质容易磨损
运输。
进料和出料方向
费用可以不同。

产品: 节省空间的斜坡高达
90(然后是小0)可能。
皮带的材质容易磨损
运输。
进料和出料方向
费用可以不同。

新闻: 节省空间的斜坡高达
90(然后是小0)可能。
皮带的材质容易磨损
运输。
进料和出料方向
费用可以不同。

这是我的CSS /*这是主页的*/ /*这是菜单*/ .菜单 { 对齐:居中; 左:567px; } /*这是用于pag底部的盒子*/ .cc_内容 { 宽度:233px; 高度:236px; /*边框底部:1px实心#000*/ 位置:绝对位置; 左:567px; 溢出:隐藏; /*-moz盒阴影:4px0 7px#000; -网络工具包盒阴影:4px0 7px#000; 盒影:4px0 7px#000*/ 顶部:876px; } .cc_content 1 { 宽度:233px; 高度:236px; /*边框底部:1px实心#000*/ 位置:绝对位置; 左:328px; 溢出:隐藏; /*-moz盒阴影:4px0 7px#000; -网络工具包盒阴影:4px0 7px#000; 盒影:4px0 7px#000*/ 顶部:876px; } .cc_content 2 { 宽度:233px; 高度:236px; /*边框底部:1px实心#000*/ 位置:绝对位置; 左:806px; 溢出:隐藏; /*-moz盒阴影:4px0 7px#000; -网络工具包盒阴影:4px0 7px#000; 盒影:4px0 7px#000*/ 顶部:876px; } /*这是用于除标题外的框的内容*/ .cc_内容p { 背景:无; 文本对齐:左对齐; 左侧填充:15px; } .cc_content 1 p { 背景:无; 文本对齐:左对齐; 左侧填充:15px; } .cc_内容2 p { 背景:无; 文本对齐:左对齐; 左侧填充:15px; } /*这是框的标题*/ .cc_内容h1 { 文本对齐:左对齐; 左侧填充:15px; } .cc_内容1 h1 { 文本对齐:左对齐; 左侧填充:15px; } .cc_内容2 h1 { 文本对齐:左对齐; 左侧填充:15px; } 我有一个定制的CSS3菜单,但我认为这不是问题所在。。
z-index被忽略,除非div是
位置:相对的
绝对的
,确保它是其中之一,否则z-index是无意义的

z-index被忽略,除非div是
位置:相对的
绝对的
,确保它是其中之一,否则z索引毫无意义

thanx我会记住这一点,我仍然无法让它工作…好的,嗯,我修复了这一点,现在我的自定义菜单显示在我的背景图像上,但在firefox或IE中仍然没有对齐??哦,顺便说一句,非常感谢你,我会记住这一点,我仍然无法让它工作,但是…?好的,嗯,我已经解决了这个问题,现在我的自定义菜单显示在我的背景图片b上