【发布时间】:2018-09-02 00:41:16
【问题描述】:
我需要“构建”一个由不同部分组成的图像。 这里有一个架构:
每幅图像之间没有空格或填充,如果整个图像都具有响应性,那就太好了……有什么想法吗? 我试过了,但图像失去了响应性:
echo '<div id="top_testa" style="overflow: hidden; ">
<div class="image-div" style="float:right;margin-left:0px;max-width:
20%;max-height: 20%;" >
</div>
<div class="image-div" style="float:right;margin-right:8.5%;max-width:
20%;max-height: 20%;" >
<img
src="TestaLuc.png" id="top_head" name="top_head">
</div>
<div class="image-div" style="float:left;margin-left:0px;max-width: 20%;max-height: 20%;">
</div>
<div style="clear:right;"></div>
</div>';
echo '<div id="base_testa" style="overflow: hidden; ">
<div class="image-div" style="float:right;margin-left:0px;max-width: 20%;max-height: 20%;" >
</div>
<div class="image-div" style="float:right;margin-right:8.5%;max-width: 20%;max-height: 20%;" >
<img src="BaseTestaMim.png" id="bottom_head" name="bottom_head">
</div>
<div class="image-div" style="float:right;margin-left:0px;max-width: 20%;max-height: 20%;">
</div>
<div style="clear:right;"></div>
</div>';
echo '<div id="asta" style="overflow: hidden; ">
<div class="image-div" style="float:right;margin-left:0px;max-width: 20%;max-height: 20%;" >
</div>
<div class="image-div" style="float:right;margin-right:8.6%;max-width: 20%;max-height: 20%;" >
<img src="AstSupNull.png" id="top_asta" name="top_asta">
</div>
<div class="image-div" style="float:right;margin-left:0px;max-width: 20%;max-height: 20%;">
</div>
<div style="clear:right;"></div>
</div>';
echo '<div id="middle" style="overflow: hidden; ">
<div class="image-div" style="float:right;margin-left:0px;max-width: 20%;max-height: 20%;" >
</div>
<div class="image-div" style="float:right;margin-right:13.3%;max-width: 20%;max-height: 20%;" >
<img src="AstInfLuc.png" id="bottom_left_asta" name="bottom_left_asta" align="right">
</div>
谢谢
【问题讨论】:
-
关于您的代码:在编写所有 HTML 之前关闭 PHP 标记,您的代码会更易于阅读。并缩进你的 HTML。
标签: html image web responsive-design