gpt4 book ai didi

html -
  • 标签在 HTML 中的不当行为
  • 转载 作者:行者123 更新时间:2023-11-28 14:21:41 25 4
    gpt4 key购买 nike

    li {audi, bmw, etc} 标签前后有很多空间。我想删除它,但它没有被删除。& 用作元素符号的第 2 个 li 标签中的图像已超出屏幕。

    所以请。谁能帮我解决这两个问题

    http://i42.tinypic.com/b5k27s.jpg

    HTML 代码:

        <html>
    <`head>`
    <link rel = "stylesheet" type = "text/css" href = "myStyle2.css" />
    <style type="text/css">
    #ul1
    {
    list-style-image:url('1.bmp');
    padding:0px;
    float:left;
    }
    </style>

    <title>CARS</title>
    </head>
    <body>

    <div class = "container" style=width: "100%">

    <div class = "header" height = "20%" width = "100%">
    CARS
    </div>

    <div class = "list" height = "10%" width = "100%">
    <ul class ="ul2">
    <li><a href = "#">HOME</a></li>
    <li><a href = "bmw.htm">BMW</a></li>
    <li><a href = "audi.htm">AUDI</a></li>
    <li><a href = "pors.htm">PORSCHE</a></li>
    <li><a href = "lamb.htm">LAMBORGHINI</a></li>
    </ul>
    </div>


    <ul id = "ul1">
    <li>AUDI</li>
    <li>PORSCHE</li>
    <li>BMW</li>
    <li>LAMBORGHI NI</li>
    </ul>
    </div>
    </body>

    </html>

    CSS 代码:

    @font-face
    {
    font-family: nsecthin;
    src : url('nsecthin.ttf')
    }
    body
    {
    margin:10px;
    background-color:green;
    }
    .header
    {
    text-align:center;
    text-transform:uppercase;
    color:black;
    text-decoration:underline;
    font-family:nsecthin,Constantia;
    font-size:2.0em;
    letter-spacing:3px;
    font-weight:bold;
    text-indent: 0;
    line-height:50px;
    background-color:yellow;
    border:2px solid white;
    }
    .list
    {

    font-family:constantia;
    font-size:2em;
    padding:0;
    margin:0;
    border:2px solid white;

    }

    .ul2 li
    {
    height:2px;
    list-style-type:none;
    float:none;
    width:100%;
    display:inline;
    border:2px solid white;
    }

    .ul2 a
    {
    float:none;
    width:1em;
    text-decoration:none;
    color:white;
    display:inline;
    background-color:blue;
    padding-left:0;
    border:2px solid white;
    }

    最佳答案

    尝试使用 list-style-position:inside; 作为您的列表项,如果这是您的意思的话。

    关于html - <li> 标签在 HTML 中的不当行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8433710/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com