月亮偷着哭... 2022-03-23 22:21 采纳率: 84.6%
浏览 38
已结题

HTML 无法插入图片

电脑重启之前就可以正常显示
但是重启之后
图片都无法显示了 我换个路径 换个图片一样不行

img

img


```html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .show{
            width:200px;
            height:100px;
            border:dotted 2px rgb(121, 121, 129);
            background-color: rgb(190, 179, 164);
            position:relative;
             
            margin-top:30px;
        
        }
        .show>div{
            width:800px;
            height:100px;
            background-color: black;
            position:absolute;
            animation: move 9s linear infinite;
         
        }
        img{
            width:200px;
            height:00px;
            display:inline;
        }
        @keyframes move{
            0%{left: 0;
               top:0}
            25%{right:-600px;
                 top:0}
            50%{right:-400px;
                 top:0}
            75%{right:-200px;
                 top:0}
            100%{right:0;
                 top:0}
        }
    </style>
</head>
<body>
    <div class="show">
        <div>
        <img src="C:\Users\ASUS\Desktop\6--web前端\div布局\t1.jpg"/>
        </div>
    </div>
</body>
</html>

```

  • 写回答

1条回答 默认 最新

  • Gacy- 2022-03-23 22:50
    关注

    为什么你那个img里面那个height是00px

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 3月31日
  • 已采纳回答 3月23日
  • 创建了问题 3月23日

悬赏问题

  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号