2017-09-23 37 views
0

这个网站是我的代码:每个图像链接到它是从

<a target="_blank" href="http://weknowyourdreams.com">Family</a> 
 
<img src="http://weknowyourdreams.com/images/family/family-02.jpg" height="140" width="300"> 
 
</a> 
 

 
<a target="_blank" href="http://chess.com">Chess</a> 
 
<img height="140" width="300" alt="Chess game" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6f/ChessSet.jpg/647px-ChessSet.jpg"> 
 
</a> 
 

 
<a target="_blank" href="http://okcstorm.com/index.php/basketball/">Basketball court</a> 
 
<img src="http://okcstorm.com/wp-content/uploads/2016/12/cropped-Basketball-2-1.jpg" width="300" height="200">

我想实现的是他们每个链接到我已经得到了他们从网站。但问题是手机中的代码复仇者告诉我这个错误:

Uncaught TypeError: Cannot read property 'ClearPromptText' of null

我不知道这意味着什么,请帮助。

+0

这是代码: – NeoAstro

+0
+0

回答

0

\t .image-f{ 
 
    float:left; 
 
    display:block; 
 
    margin-right:10px; 
 
    width:300px; 
 
} 
 
.image-f img{ 
 
    float:left; 
 
    width:100%; 
 
    height:140; 
 
}
<a target="_blank" class="image-f" href="http://weknowyourdreams.com/" >Family 
 
<img src="http://weknowyourdreams.com/images/family/family-02.jpg" > 
 
</a> 
 

 
<a target="_blank" class="image-f" href="http://chess.com">Chess 
 
<img alt="Chess game" src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/6f/ChessSet.jpg/647px-ChessSet.jpg"> 
 
</a> 
 

 
<a target="_blank" class="image-f" href="http://okcstorm.com/index.php/basketball/">Basketball court 
 
<img src="http://okcstorm.com/wp-content/uploads/2016/12/cropped-Basketball-2-1.jpg" ></a>

相关问题