欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

错误集锦01:CSS插入图片失败 cssimg

程序员文章站 2022-06-07 08:42:14
...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"                                    
"http://www.w3.org/TR/html4/strict.dtd">                                             
                                                                                     
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">                                
<head>                                                                           
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />        
<title></title>                                                              
                                                                                     
</head>                                                                          
<body>                                                                           
<div>                                                                        
<img src="img\212.png"width="50px" height="50px"/>                           
        </div>                                                                       
</body>                                                                          
</html>                                                                              
     

       原因:创建文件时没有将文件建在主目录上,而是建在了js文件目录下。                                                                   
相关标签: css img