风也温柔

计算机科学知识库

css让符号垂直 使用 CSS 创建一个没有任何项目符号的无序列表

  HTML 基本上提供了三种不同类型的列表:

  有几种方法可以用 CSS 设计这三种类型的列表。它可以是数字、圆形、方形、字母数字或什至不存在css让符号垂直css让符号垂直 使用 CSS 创建一个没有任何项目符号的无序列表。它还可以在 CSS 的帮助下选择是水平对齐还是垂直对齐列表。

  本文的任务是使用 CSS 创建一个没有任何项目符号的无序列表css让符号垂直

  示例 1:

  <pre class="prism line-numbers lang-css" data-lang="CSS">`

    
        Unordered list without using bullets
        
            ul {
                list-style-type:none;
            }
            h1 {
                text-align:center;
                color:green;
            }
            h3 {
                text-align:center;
            }
            body {
                width:60%;
            }
        
    
    
        #GeeksforGeeks
        ###Unordered list without using bullets
        <p>Computer science subject lists:

        
            Data Structure
            Algorithm
            Computer Networks
            Operating System
            Theory of Computations
            Computer Organization and Architecture
            Discreate Mathematics
            C Programming
        
    
                    
`</pre></p>
  输出:

  示例 2:

  <pre class="prism line-numbers lang-css" data-lang="CSS">`

    
        Unordered list without using bullets
        
            ul {
                list-style-type:none;
            }
            ul li {
                display:inline;
            }
            h1 {
                text-align:center;
                color:green;
            }
            h3 {
                text-align:center;
            }
            body {
                width:70%;
            }
        
    
    
        #GeeksforGeeks
        ###Unordered list without using bullets
        <p>Computer science subject lists:

        
            Data Structure
            Algorithm
            Computer Networks
            Operating System
            Theory of Computations
            Computer Organization and Architecture
            Discreate Mathematics
            C Programming
        
    
                    
`</pre></p>
  输出:

  文章来源:https://www.imangodoc.com/197169.html