我已經把一張圖片放在ul/li列表裏面的HTML代碼中,現在發生的事情是圖片在右邊獲得正確的描述,但是下一個項目符號點也在圖片我想避免......(見下面的例子圖)HTML/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;
}
Examp樂:
試試這個:李{溢出:隱藏;} –
另外,不要鏈接到一個截圖,而不是建立在這個網站上再現問題小提琴。 –
Thx快速響應,不起作用,它只是刪除列表中的'點'... – LaMat