我想通过将名称从更改"portrait.jpg"
为"landscape.jpg"
后跟序列号来替换列表项中的图像。
例如:
<img src="images/slider_01_portrait.jpg">
<img src="images/slider_02_portrait.jpg">
<img src="images/slider_03_portrait.jpg">
<img src="images/slider_04_portrait.jpg">
<img src="images/slider_05_portrait.jpg">
改为↓</p>
<img src="images/slider_01_landscape.jpg">
<img src="images/slider_02_landscape.jpg">
<img src="images/slider_03_landscape.jpg">
<img src="images/slider_04_landscape.jpg">
<img src="images/slider_05_landscape.jpg">
这是我的代码:
<div class="slider fullscreen">
<ul class="slides">
<li>
<img src="images/slider_01_portrait.jpg">
</li>
<li>
<img src="images/slider_02_portrait.jpg">
</li>
<li>
<img src="images/slider_03_portrait.jpg">
</li>
<li>
<img src="images/slider_04_portrait.jpg">
</li>
<li>
<img src="images/slider_05_portrait.jpg">
</li>
</ul>
</div>