html - 列表元素符号在 Mozilla 和 IE 中的间距比在 Chrome 中大

标签 html css google-chrome internet-explorer mozilla

This is when viewed in Google Chrome, updated to date.

This is when viewed in Mozilla, updated to date.

This is when viewed in Internet Explorer, updated to date.

下面是我的 HTML:

<div id="text_style">
<div id="text_style_in">
<ul>
    <li>
    <p><a href="#" target="_self">Fact Sheet</a></p>
    </li>
    <li>
    <p><a href="#" target="_self">Facilities and Administrative (F&amp;A) Cost Agreements</a></p>
    </li>
    <li>
    <p><a href="#" target="_self">PropStart</a></p>
    </li>
    <li>
    <p><a href="#" target="_self">Equipment Matching</a></p>
    </li>
    <li>
    <p><a href="#" target="_self">Training Guide: Preparing Research Proposal Budgets</a></p>
    </li>
    <li>
    <p><a href="#" target="_self">Three Work-Day Rule</a></p>
    </li>
</ul>
</div>
</div>

我没有唯一定义的列表样式。 如何使列表在 Mozilla 和 IE 中看起来相似?

最佳答案

你应该删除 de <p>标记,并像这样:

<ul>
  <li><a href="#" target="_self">one</a></li>
  <li><a href="#" target="_self">two</a></li>
</ul>

关于html - 列表元素符号在 Mozilla 和 IE 中的间距比在 Chrome 中大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28813544/

相关文章:

css - 转换文本溢出 : ellipsis text to "floating" view of full text

javascript - 我的 Chrome 插件如何通过 Javascript 自行禁用?

jquery - 在 Chrome 中获得焦点模糊的元素

html - 在 html 选项标签的上标中显示 'rd'

html - 表单被随机提交为 GET 而不是 POST

html - 防止 flex PARENT 无溢出地增长 : hidden

javascript - 视频播放器错误未捕获在 promise DOMException 中

避免寡妇的JavaScript

Javascript 切换元素的显示不工作

php - PDF 生成在 Chrome 中导致 ERR_INVALID_RESPONSE