gpt4 book ai didi

html - 页脚未显示在网页上,但我可以在页面加载时看到它

转载 作者:行者123 更新时间:2023-11-28 15:16:47 25 4
gpt4 key购买 nike

我创建了一个页面,当它加载到网络上时显示很时髦。我的页脚没有显示。虽然我可以看到它在屏幕上短暂闪烁。我的代码中有什么地方可能会导致它失效吗?

这是HTML

<div id="pageheader">
<img src="Assets/OLE logo.jpg" alt="https://olehealth123.sharepoint.com" />
<p>
<a href="https://interland3.donorperfect.net/weblink/weblink.aspx?name=E161841&id=1">Donate to OLE


</a>
</p>
</div>

        <!--CS: Start Ribbon Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--SPM:<%@Register Tagprefix="wssucw" TagName="Welcome" Src="~/_controltemplates/15/Welcome.ascx"%>-->
<!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" HideFromSearchCrawler="true" EmitDiv="true">-->
<div id="TurnOnAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOnAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(true);UpdateAccessibilityUI();document.getElementById('linkTurnOffAcc').focus();return false;">
<!--MS:<SharePoint:EncodedLiteral runat="server" text="&#60;%$Resources:wss,master_turnonaccessibility%&#62;" EncodeMethod="HtmlEncode">-->
<!--ME:</SharePoint:EncodedLiteral>-->
</a>
</div>
<div id="TurnOffAccessibility" style="display:none" class="s4-notdlg noindex">
<a id="linkTurnOffAcc" href="#" class="ms-accessible ms-acc-button" onclick="SetIsAccessibilityFeatureEnabled(false);UpdateAccessibilityUI();document.getElementById('linkTurnOnAcc').focus();return false;">
<!--MS:<SharePoint:EncodedLiteral runat="server" text="&#60;%$Resources:wss,master_turnoffaccessibility%&#62;" EncodeMethod="HtmlEncode">-->
<!--ME:</SharePoint:EncodedLiteral>-->
</a>
</div>
<!--ME:</SharePoint:SPSecurityTrimmedControl>-->
<div id="ms-designer-ribbon">
<!--SID:02 {Ribbon}-->
<!--PS: Start of READ-ONLY PREVIEW (do not modify) --><div class="DefaultContentBlock" style="background:rgb(0, 114, 198); color:white; width:100%; padding:8px; height:64px; overflow:hidden;">The SharePoint ribbon will be here when your file is either previewed on or applied to your site.</div><!--PE: End of READ-ONLY PREVIEW -->
</div>
<!--MS:<SharePoint:SPSecurityTrimmedControl runat="server" AuthenticationRestrictions="AnonymousUsersOnly">-->
<!--MS:<wssucw:Welcome runat="server" EnableViewState="false">-->
<!--ME:</wssucw:Welcome>-->
<!--ME:</SharePoint:SPSecurityTrimmedControl>-->
<!--CE: End Ribbon Snippet-->
<div id="s4-workspace">
<div id="s4-bodyContainer">
<div id="menu">
<ul>
<li>
<a href="https://olehealth123.sharepoint.com/">Home


</a>
</li>
<!--closing the main li tag-->
</ul>
<!--end of main ul tag-->
<ul>
<li>
<a href="#">Admin


</a>
<ul>
<li>
<a href="#">Human Resources


</a>
</li>
<li>
<a href="#">Finance


</a>
</li>
<li>
<a href="#">OLE Health Foundation


</a>
</li>
<li>
<a href="#">Marketing &amp; Communications


</a>
</li>
</ul>
<!--closure of inner ul tag-->
</li>
<!--closing the main li tag-->
</ul>
<!--end of main ul tag-->
<ul>
<li>
<a href="#">Clinical Operations


</a>
<ul>
<li>
<a href="#">Operations Homepage


</a>
</li>
<li>
<a href="#">Calistoga


</a>
</li>
<li>
<a href="#">1100 Trancas


</a>
</li>
<li>
<a href="#">County Campus


</a>
</li>
<li>
<a href="#">Fairfield


</a>
</li>
<li>
<a href="#">Napa Pear Tree Lane


</a>
</li>
<li>
<a href="#">Clinical Pharmacy


</a>
</li>
<li>
<a href="#">Integrated Primary Care


</a>
</li>
<li>
<a href="#">Behavioral Health


</a>
</li>
</ul>
<!--closure of inner ul tag-->
</li>
<!--closing the main li tag-->
</ul>
<!--end of main ul tag-->
<ul>
<li>
<a href="#">Committees


</a>
<ul>
<li>
<a href="https://olehealth123.sharepoint.com/QICommittee">QI Committee


</a>
</li>
<li>
<a href="https://olehealth123.sharepoint.com/ecwcommittee/">eCW Optimization Committee


</a>
</li>
<li>
<a href="https://olehealth123.sharepoint.com/strategicplancommittees">Strategic Planning Committees


</a>
</li>
<li>
<a href="https://olehealth123.sharepoint.com/Quality Assurance Committees ">Quality Assurance Committees


</a>
</li>
<li>
<a href="https://olehealth123.sharepoint.com/Workgroups">Workgroups


</a>
</li>
<li>
<a href="https://olehealth123.sharepoint.com/Charters">Charters


</a>
</li>
</ul>
<!--closure of inner ul tag-->
</li>
<!--closing the main li tag-->
</ul>
<!--end of main ul tag-->
<ul>
<li>
<a href="#">Leadership Teams


</a>
<ul>
<li>
<a href="https://olehealth123.sharepoint.com/Executive%20Leadership%20Team">Executive Leadership Team


</a>
</li>
<li>
<a href="https://olehealth123.sharepoint.com/Operations%20Leadership%20Team">Operations Leadership Team


</a>
</li>
<li>
<a href="https://olehealth123.sharepoint.com/Clinical%20Leadership%20Team">Clinical Leadership Team


</a>
</li>
</ul>
<!--closure of inner ul tag-->
</li>
<!--closing the main li tag-->
</ul>
<!--end of main ul tag-->
<ul>
<li>
<a href="#">Patient Services


</a>
<ul>
<li>
<a href="#">Link 1


</a>
</li>
<li>
<a href="#">Link 1


</a>
</li>
<li>
<a href="#">Link 1


</a>
</li>
<li>
<a href="#">Link 1


</a>
</li>
</ul>
<!--closure of inner ul tag-->
</li>
<!--closing the main li tag-->
</ul>
<!--end of main ul tag-->
<ul>
<li>
<a href="#">Facilities


</a>
<ul>
<li>
<a href="#">Link 1


</a>
</li>
<li>
<a href="#">Link 1


</a>
</li>
<li>
<a href="#">Link 1


</a>
</li>
<li>
<a href="#">Link 1


</a>
</li>
</ul>
<!--closure of inner ul tag-->
</li>
<!--closing the main li tag-->
</ul>
<!--end of main ul tag-->
</div>
<!--end of main menu div-->
<div data-name="ContentPlaceHolderMain">
<!--CS: Start PlaceHolderMain Snippet-->
<!--SPM:<%@Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
<!--MS:<SharePoint:AjaxDelta ID="DeltaPlaceHolderMain" IsMainContent="true" runat="server">-->
<!--MS:<asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server">-->
<div id="overlay">
<img alt="" height="548px" src="1414px%20pregancy%20classes.jpg" width="1414px" />
<h1>Perinatal Classes Start Today!
</h1>
</div>7:18 PM 2/18/2017
<!--ME:</asp:ContentPlaceHolder>-->
<!--ME:</SharePoint:AjaxDelta>-->
<!--CE: End PlaceHolderMain Snippet-->
</div>
</div>
</div>
<footer>
<div id="footer">
<ul>
<li>@2017 OLE Health


</li>
<li>All rights reserved


</li>
</ul>
<ul>
<a href="#">
<li>Calistoga


</li>
</a>
<a href="#">
<li>County Campus


</li>
</a>
<a href="#">
<li>Fairield


</li>
</a>
<a href="#">
<li>Napa Pear Tree Lane


</li>
</a>
<a href="#">
<li>St. Helena


</li>
</a>
</ul>
<ul>
<a href="#">
<li>Integrated Primary Care


</li>
</a>
<a href="#">
<li>Behavioral Health


</li>
</a>
<a href="#">
<li>Clinical Pharmacy


</li>
</a>
</ul>
<ul>
<a href="#">
<li>Submit an IT Ticket


</li>
</a>
<a href="#">
<li>Submit a Data Request


</li>
</a>
<a href="#">
<li>Submit a Marketing Request


</li>
</a>
<a href="#">
<li>
<strong>Go back to Homepage


</strong>
</li>
</a>
</ul>
<ul>
<img src="Assets/olewhitelogo.png" alt=""/>
</ul>
</div>
</footer>
</div>

 #container

{
width: 1414px;
margin:0 auto;
}


/* the original body tag had a left and right margin of 10% */


body {
width: 1414px;
margin-left: 10%;
margin-right: 10%;

}
/* CSS Document */

#menu {
width: 1414px;
margin-top: 1%;
padding-bottom: 2%;

}

#menu ul {
margin-top: 0px;
margin-right: 0px;
margin-left: 0px;
margin-bottom: 0px;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 0px;
padding-right: 0px;
text-align: center;
}
#menu ul li {
background-color: #42A68A;
float: left;
position: relative;
border: 1px solid #FFFFFF;
list-style-type: none;
}
#menu ul li a {
font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana,
font-size: 14px;
color: #FFFFFF;
display: block;
line-height: 30px;
width: 200px;
height: 30px;
text-decoration: none;
}
#menu ul ul {
position: absolute;
visibility: hidden;
}
#menu ul li:hover ul {
visibility: visible;
}
#menu ul li:hover {
background-color: #327E68;
z-index: 1;
}
#menu ul li ul li a:hover {
background-color: #119872;
}
#menu ul li a:hover {

}

#pageheader p a:link {
display: inline-block;
padding: 1em 2em;
background-color: #D93006;
text-decoration: none;
color: #FFFFFF;
float: right;
margin-top: -6%;
font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana,
}
#pageheader p a:hover {
background-color: rgba(175,39,1,1.00);
}
#pageheader p a:visited {
color: rgba(255,255,255,1.00);
}
#footer {
position: relative;
clear:left;
width: 500px
background-color: rgba(143,143,143,1.00);
color: #FFFFFF;
font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana,
padding-top: 1%;


}

#footer ul {
position: relative;
float: left;
display: block;
list-style-type: none;
line-height: 255%;
padding-left: 4%;
padding-right: 4%;
}
#footer ul img {
margin-top: 14%;
}
#footer ul li {


}
#footer ul a:link{
color: rgba(255,255,255,1.00);
text-decoration: none;
text-align: left;

}
#footer ul a:visited{
color: rgba(255,255,255,1.00);
text-decoration: none;
text-align: left;

}
#footer ul a:hover{
color: rgba(211,211,211,1.00);
text-decoration: none;
text-align: left;



}
#footer ul a:link{
color: rgba(255,255,255,1.00);
text-decoration: none;
text-align: left;

}
#footer ul a:visited{
color: rgba(255,255,255,1.00);
text-decoration: none;
text-align: left;

}
#footer ul a:hover{
color: rgba(211,211,211,1.00);
text-decoration: none;
text-align: left;

最佳答案

由于我看不到你的完整代码,所以我无法正确猜出问题所在。但我想也许你可以在你的 css 中尝试 z-index 。试试这个:

#footer {
z-index: 10000;
}

关于html - 页脚未显示在网页上,但我可以在页面加载时看到它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42357967/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com