Ich versuche mein jQuery-Menü zu perfektionieren.CSS-Probleme keine Sinn
Allerdings laufe ich auf einige CSS-Probleme und ich bin fest. Hier sind meine Probleme.
#nav {
list-style: none;
margin: 0;
padding: 0;
margin-bottom: 20px;
}
#nav li {
position: relative;
margin: 0;
font-size: 15px;
border-bottom: 1px solid #fff;
padding: 0;
}
#nav li ul {
opacity: 0;
height: 0px;
}
#nav li a {
font-style: normal;
font-weight: 400;
position: relative;
display: block;
padding: 16px 25px;
color: #fff;
white-space: nowrap;
z-index: 2;
text-decoration: none
}
#nav li a:hover {
color: #c0392b;
background-color: #ecf0f1;
}
#nav ul li {
background-color: #e74c3c;
color: #fff;
display: block;
list-style: disc;
}
#nav li:first-child {
border-top: 1px solid #fff;
}
#nav ul {
margin: 0;
padding: 0;
}
#nav .fa { margin: 0px 17px 0px 0px; }
.logo {
width: 100%;
padding: 21px;
margin-bottom: 20px;
box-sizing: border-box;
}
#logo{
color: #fff;
font-size: 30px;
font-style: normal;
}
.sidebar-icon {
position: relative;
float: right;
text-align: center;
line-height: 1;
font-size: 25px;
padding: 6px 8px;
color: #fff;
}
.disp {
opacity: 1!important;
height:auto!important;
transition: height 100ms ease-in-out;
transition-delay: 300ms;
}
Ich laufe auf einige CSS-Probleme, und ich bin fest. Hier sind meine Probleme. Ich laufe auf einige CSS-Probleme und ich bin fest. Hier sind meine Probleme.
Für die Links hinzufügen, einfach wickeln alle Link Inhalt in '' (wo sie in einigen Links fehlen) und dann 'hinzufügen: first-child' Regel : https://jsfiddle.net/pjb7jzjk/35/ –
Und wie wäre es mit der Frage # 2 die doppelte Grenze? und # 3 Frage die Bildlaufleisten? Wie kann ich diese entfernen oder reparieren? –
Verwenden Sie "min-width" nicht für Container-DIVs in CSS: Aus diesem Grund werden die Bildlaufleisten angezeigt. –