0
Polymer를 사용하여 웹 사이트를 개발했습니다. <core-pages>
을 사용할 때 내 바닥 글이 <core-pages>
과 겹치기 때문에 <core-pages>
위치가있는 것으로 나타났습니다. 절대적인 위치를 취하면 페이지가 망가집니다. 어떤 제안? 내가 무슨 말인지 여기폴리머를 사용할 때 한 div가 다른 div를 겹치고 있습니다.
:host {
display: block;
position: relative;
}
polyfill-next-selector { content: ':host > *'; }
::content > * {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
visibility: hidden;
z-index: -1000;
}
polyfill-next-selector { content: ':host > .core-selected'; }
::content > .core-selected {
visibility: visible;
z-index: auto;
}
는 일부 스크린 샷입니다 :
<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="page-footer" noscript>
<template>
<link rel="stylesheet" href="../css/style.css">
<footer>
<div>
<div class="links">
<a href="/"><paper-button raised><core-icon icon="archive"></core-icon>Update Archive</paper-button></a>
<a href="/"><paper-button><core-icon icon="face-unlock"></core-icon>Contact and Chat</paper-button></a>
<a href="/"><paper-button><core-icon icon="account-balance"></core-icon>Legal Disclaimer</paper-button></a>
<a href="/"><paper-button><core-icon icon="receipt"></core-icon>Terms of Service</paper-button></a>
<a href="/"><paper-button><core-icon icon="bug-report"></core-icon>Report A Bug</paper-button></a>
</div>
<p id="copyright">This website and its contents are copyright ©2014-2015 Website Name.</p>
</div>
</footer>
</template>
</polymer-element>
/**************FOOTER STYLES**************/
footer {
position: relative;
background-color: #fafafa;
padding: 100px 0;
padding-left: 64px
}
footer .links {
margin-bottom: 56px
}
footer paper-button {
margin-right: 30px;
margin-bottom:10px;
opacity: 0.6;
color: black
}
footer #copyright {
color: #b3b3b3;
font-size: 14px;
text-align:center
}
footer>:first-child {
max-width: 1032px;
margin: 0 auto
}
그리고 <core-pages>
CSS :
여기 여기 내 페이지 바닥 글의 내 코드
<core-pages flex>
<section id="settings" class="settings">
<div class="panel">
<summary style="margin-left:25px">
<h1>Account</h1>
<p>Here, you can edit your account information</p>
<form is="ajax-form" action="ajax.php" method="post">
<paper-input-decorator label="Email" floatingLabel>
<input is="core-input" name="email" type="email" required="required">
</paper-input-decorator>
<paper-input-decorator label="Old Password" floatingLabel>
<input is="core-input" name="pass" type="password" required="required">
</paper-input-decorator>
<paper-input-decorator label="New Password" floatingLabel>
<input is="core-input" name="newpass" type="password" required="">
</paper-input-decorator>
<paper-input-decorator label="Confrim New Password" floatingLabel>
<input is="core-input" name="newpass" type="password" required="">
</paper-input-decorator>
<br />
<div align="center">
<paper-button id="submitButton" raised=""><core-icon icon="arrow-forward"></core-icon>Update My Account</paper-button>
</div>
</form>
</summary>
</div>
</section>
<section>
asdfsadf
</section>
</core-pages>
<page-footer></page-footer>
입니다 대략, 더 나은 설명을주기 위하여 : 절대 위치에 :없이 여기 은입니다 : 나는 그것을 알아 낸 http://prntscr.com/5ko78r
에 위치를 추가 할 수 있지만 항상 아래에 있어야했다 당신' 핵심 페이지', 맞죠? 여기에 관련된 스레드가 있습니다 : [http://stackoverflow.com/questions/27279273/core-header-panel-and-sticky-footer](http://stackoverflow.com/questions/27279273/core-header-panel - 및 - sticky-footer) – zunder