Home > front end >  Save me, study for two hours I don't know what is the problem the following ul is not incorpora
Save me, study for two hours I don't know what is the problem the following ul is not incorpora

Time:11-23

Below the ul is not incorporated into the navigation bar above, study two hours not to come out, cry, want to combine the orange to red inside


 & lt; Style> 
* {margin: 0; padding: 0; The text - decoration: nones; The list - style - type: none; }
The header {width: 100%; height:60px; Background - color: brown; }
The header a img {background - color: burlywood; Margin - top: 5 px; }

Ul li {
width: 100px;
Height: 60 px;
Background - color: coral;
text-align: center;
The line - height: 60 px;
Float: left;
}
. The header img {a display: inline; }
</style>

<body>

CodePudding user response:

The mouse on the CSDN the above menu, right click on the check, to know, or add left float to ul, or add the display to the header: flex

CodePudding user response:

Let the ul can float
  • Related