我已经自动生成了可以生成这种HTML的HTML(几乎不可能更改,因为它是由第三方库生成的)
<p>
<img src="...">
<img src="...">
</p>
它会生成如下屏幕截图:
我希望能够将2张图像水平居中(这里有2张,但我们可以有1张或更多张)。
添加了:完整的html
<div class="innercontent" data-slide-fit="fit" style="font-size: 32px;"><h1>Images</h1>
<ul>
<li>Images can be local or from Internet. It is recommended to use local images for better performances.</li>
</ul>
<p><img src="img/photos-background.jpg" alt="" style="max-height: 267.9692951849267px;">
<img src="img/photos-background.jpg" alt="" style="max-height: 267.9692951849267px;"></p>
<ul>
<li>They are streched or resized in order to occupy available space while giving room for other elements.</li>
</ul>
</div>