我可以帮忙翻译。这段内容是关于编程的,讲述了在 ul/li 列表中插入图片时出现的问题:图片的右侧会显示正确的描述,但下一个项目符号也会紧贴在图片旁边,需要避免。以下是示例图像。
这里提供的代码如下:
同时还有一个单独的CSS文件,其中包含:
这里提供的代码如下:
<ul>
<li><strong>Dwarf</strong></li>
</ul>
<img src="C:\Users\690177\Desktop\TEST WEB\images\troll.jpg">
The dwarf figurine is short, stocky and well armored, carrying a battle axe. He is very good in health, but lacks the attack strength of the barbarian and has no magical abilities. The dwarf also has the unique ability of being able to disarm traps without special equipment. His starting weapon is a short sword.</p>
<ul>
<li><strong>Elf</strong></li>
</ul>
The elf figurine is tall and slender, armed with a short one-handed sword. He is equal in attack strength to the dwarf, but is less physically robust. He is also able to use one element's spell—air, earth, fire, or water magic, and can resist magical attack more effectively. His starting weapon is a short sword.
同时还有一个单独的CSS文件,其中包含:
img {
float: left;
height:90px;
width:75px;
margin: 5px;
padding-bottom: 10px;
padding-right: 5px;
overflow: hidden;
}
例子: