。
<html>
<head>
<style>
body {
**box-sizing: border-box;
float: left width:10%;
padding: 2px;
height: 800px**。
}
</style>>
</head>
<body>
<div id="banner" style=overflow: hidden; display: flex; justify-content: space-around;">
<div class="clm"/span>>
<p>/span>
<a href="https://bigdunestours. com/desert-safari" target="_blank">。
<img src="https://skylandtourism.com/wp-content/uploads/2018/03/Morning-Safari. jpg" alt="Picture1" style="width: 90%">
</div>/span>
<div class="clm">
<p>/span>
<a href="https://google. com" target="_self"></a>
<img src="https://skylandtourism.com/wp-content/uploads/2018/03/Morning-Safari. jpg" alt="Picture2" style="width: 90%">
</div>/span>
</div>/span>
<body>
<html>/span>
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" class="snippet-box-edit snippet-box-result" frameborder="0"></iframe>
需要幫助
uj5u.com熱心網友回復:
你希望<a></a>標簽被包裹在你想創建超鏈接的元素中。所以在這種情況下,影像應該被包裹在a標簽中。
<html>
<head>
<style>
body {
**box-sizing: border-box;
float: left width:10%;
padding: 2px;
height: 800px**。
}
</style>>
</head>
<body>
<div id="banner" style=overflow: hidden; display: flex; justify-content: space-around;">
<div class="clm"/span>>
<p>/span>
<a href="https://bigdunestours. com/desert-safari" target="_blank">。
<img src="https://skylandtourism.com/wp-content/uploads/2018/03/Morning-Safari. jpg" alt="Picture1" style="width: 90%">
</a>/span>
</div>/span>
<div class="clm">
<p>/span>
<a href="https://google. com" target="_self">。
<img src="https://skylandtourism.com/wp-content/uploads/2018/03/Morning-Safari. jpg" alt="Picture2" style="width: 90%">
</a>/span>
</div>/span>
</div>/span>
<body>
<html>/span>
<iframe name="sif2" sandbox="allow-forms allow-modals allow-scripts" class="snippet-box-edit snippet-box-result" frameborder="0"></iframe>
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/330190.html
標籤:
