Ich baue ein Projekt in Angular 2, und ich brauche eine klebrige Fußzeile, die immer am unteren Rand der Seite sein muss, nicht behoben. Beispiel: http://codepen.io/chriscoyier/pen/uwJjrSticky Footer am unteren Rand in Angular 2
Die Struktur der 'App' Komponente ist wie folgt:
<header-main></header-main>
<router-outlet></router-outlet>
<footer>...</footer>
Wahrscheinlich ist das Problem nicht mit kantigem selbst verbunden ist, aber mit nur CSS. Allerdings habe ich versucht, es so Umsetzung:
app {
min-height: 100%;
position: relative;
}
footer {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 271px;
}
Das Interessante daran ist, dass, wenn ich drehe eine Position der Fußzeile in Inspektoren aus und wieder ein, die Fußzeile wird OK:
SOLUTION:
app {
min-height: 100%;
width: 100%;
margin-bottom: -271px;
display: table;
}
header-main,
router-outlet,
footer{
display: table-row;
}
header-main {
height: 60px;
}
router-outlet {
position: absolute;
}
footer {
height: 271px;
}
haben jede soluting dafür?. Ich habe das gleiche Problem –
keine Antwort. Ich brauche Hilfe ur –
VIELEN DANK FÜR DIE LÖSUNG BEITRAG <3 <3 – Cacoon