我是新來的HTML/CSS和試圖把文字之間的兩個圖像。使用下面的代碼,我能夠做到這一點。但是,如果我需要很多文本,則格式將按照figure 1
中所示的順序排列。你能告訴我如何讓我的網站看起來像Figure 2
?兩個圖像之間的文本?
<!DOCTYPE html>
<html>
<body>
<div class="header">
<img src="http://www.w3schools.com/browsers/pic_chart.jpg" style="vertical-align: middle"/>
<a href="http://www.w3schools.com" style="font-family:Georgia;color:black;font-size:17px;">The site provides a reference manual covering many aspects of web programming, including technologies such as HTML, XHTML, CSS, XML, JavaScript, PHP, ASP, SQL etc. W3schools presents thousands of code examples. By using the online editor provided, readers can edit the examples and execute the code experimentally.</a>
<img src="http://www.w3schools.com/browsers/pic_chart.jpg" style="vertical-align: middle"/>
</div>
</body>
</html>
圖1:
圖2:
謝謝你所有的答案和所有的細節。他們同樣有幫助。 –