Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

144
Visualizações
unordered list nested in ordered list not giving the expected result in a vuejs application

How can I nest an unordered list in an ordered list in vue 2 ?? I have tried

<template>
  <div class="p-14">
    <ol class="numberlist">
      <li>An numbered list</li>
      <li>Containing

        <ul class="sqaredotlist">
          <li>A dotted list</li>
          <li>Containing

            <ol class="romanlist">
              <li>A roman numeral list</li>
              <li>And some items</li>
              <li>Like this</li>
            </ol>
          </li>
          <li>And some items</li>
          <li>Like this</li>
        </ul>
      </li>
      <li>And some items</li>
      <li>Like this</li>
    </ol>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
  ol.numberlist {
    list-style-type: decimal;
  }

  ul.sqaredotlist {
    list-style-type: square;
  }

  ol.romanlist {
    list-style-type: lower-roman;
  }
</style>

but that gives me. It looks like the unordered elements are interpreted as ordered.

1. An numbered list.
2. Containing
1. A dotted list
2. Containing
1. A roman numeral list
2. And some items
3. Like this
3. And some items
4. Like this
3. And some items
4. Like this

Without the css classes I get the same result. If anyone knows how to nest an unordered list in an ordered list, please help me !!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Perhaps a different file in your directory is affecting this Vue file. Is there a 'global' stylesheet in your project? Maybe that stylesheet says:

li {
    list-style-type: decimal !important;
}
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda