search

Home  >  Q&A  >  body text

The order of css right floating words is reversed

<style>

*{ margin:0; padding:0; list-style:none;}

img{ border:0;}

.header{ width:100%; background:#11192c;}

.nav{ width:1000px; margin:0 auto; overflow:hidden;}

.nav ul li{ height:40px; line-height:40px; float: right; padding:10px 10px; margin:0px 5px;position:relative;}

.nav ul li a{ color:#8f8f8f; font-family:'Microsoft Yahei'; font-size:17px; float: right; text-decoration:none;}

.nav ul li a:hover{ color:#ffffff; text-decoration:none;}

.nav ul li span{ display:block; position:absolute; width:0px; height:0px; background:#ffffff; top:58px; left:50%;}

</style>

</head>

<body>

<!-- 代码begin -->

<div class="header">

<div class="nav">

<ul>

<li><a href='#'>1</a><span></span></li>

    <li><a href='#'>2</a><span></span></li>

    <li><a href='#'>3</a><span></span></li>

    <li><a href='#'>4</a><span></span></li>

    <li><a href='#'>5</a><span></span></li>

    <li><a href='#'>6</a><span></span></li>

</ul>

</div>

</div>

古今公子?古今公子?1208 days ago2143

reply all(3)I'll reply

  • 猪老湿

    猪老湿2021-08-04 08:43:09

    Student, what effect do you want to achieve? Can you post a picture? With so much code, do you have to have someone run it to understand your problem? Just ask the question, attach the picture, and explain the requirements. And the methods you have used, this is the fastest way to answer questions

    reply
    0
  • 古今公子?

    I've solved it myself, thank you

    古今公子? · 2021-08-04 09:20:04
  • Cancelreply