Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 把图像放在一起_Html_Css - Fatal编程技术网

Html 把图像放在一起

Html 把图像放在一起,html,css,Html,Css,HTML 嘿,我怎么能把这两张照片放在一起 请尝试以下代码: a组img{ 身高:10%; 宽度:200px; } 移除位置:固定..或将其移动到.button类? <div class="button"> <a href="#"> <img id="img1" src="icons/onas1.svg" alt="O nas[enter image description here][1]">

HTML

嘿,我怎么能把这两张照片放在一起

请尝试以下代码:

a组img{ 身高:10%; 宽度:200px; } 移除位置:固定..或将其移动到.button类?
   <div class="button">
          <a href="#">
            <img id="img1" src="icons/onas1.svg" alt="O nas[enter image description here][1]">
          </>
        <a href="#">
          <img id="img2" src="icons/kontakt1.svg" alt="kontakt">
        </a>
      </div>
  </div>
div.button img{
  position: fixed;
  height: 10%;
  display: inline-block;
}