2017-09-23 32 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>

相關問題