suchen

Heim  >  Fragen und Antworten  >  Hauptteil

So stellen Sie Bilder auf der Webseite so ein, dass sie nach links und rechts gleiten

<html> <meta charset="UTF-8"> /*Width, height*/width: 150px;/*border*/border: 1px solid#000;/* horizontaler Überlauf verwendet Bildlaufleiste (automatisch || scrollen)*/overflow: auto;}#IMG- list>p{ /* Breite, Höhe Hintergrundfarbe */ width:100px /*Bevor sich die Maus bewegt, fügen Sie einen Rahmen hinzu und legen Sie fest die Farbe zu transparent* /              border-radius:5px;                  /*border:2px solid transparent;*/                                            border-radius:5px;                                                                               border-radius:5px; border-color:#f00 ; box-shadow :3px 3px 0px 0px #ddd }      </style>   </head>   <Körper>   <!-- 1、创建一个 500px*150px 的div,id : img-list -->      <div id="img-list">         <!-- 2、创建一个 800px*100px 的p元素 -->         

            <img src="p_small_001.jpg">            <img src="p_small_002.jpg">            <img src="p_small_003.jpg">            <img src="p_small_004.jpg">            <img src="p_small_005.jpg">            <img src="p_small_006.jpg">            <img src="p_small_007.jpg">         

      </div>   </body></html>

。。。。。。1577 Tage vor2089

Antworte allen(1)Ich werde antworten

  • 天蓬老师

    天蓬老师2020-11-09 09:40:30

    需要js配合

    Antwort
    0
  • StornierenAntwort