在Chrome中保留对齐子弹的问题

时间:2015-03-27 14:04:16

标签: html css

我是企业主(不是开发商),他试图通过以下方式随机修复子弹(貌似):

  • 在有序或无序列表的右侧显示项目符号。
  • 在列表右侧显示项目符号,并在左侧正确显示后续项目符号。

问题出现在Chrome中。 Firefox似乎没问题。

我有:

  • 通过网络和stackoverflow研究了该问题,但未能找到相关解决方案。
  • 尝试从头开始重建页面。但问题仍然存在。
  • 尝试使用DreamWeaver和Expression Web等拆分设计/代码Web开发应用程序进行修复。

然而,尽管我尽最大努力修复,HTML仍然占上风。

我的网站最初由开发人员(表面上)编码,他们知道自己在做什么。所以我正在处理遗留页面和结构。

真诚地感谢任何帮助。其他非开发者论坛成员可能会从您的答案中受益。

谢谢。

我在下面插入了嵌套的有序/无序列表代码。

<h2>Private Equity Criteria</h2>
<p>To qualify for a Private Equity investment your company needs to:<br/>
	<ol>
		<li><span class="listtext1">Have a viable business model, customers, revenue, and profitability &#8212; with a 
minimum EBITDA of $1M - $3M.</span><ul class="listtext1">
			<li>That means: Neither start-ups nor early stage (pre-revenue) companies qualify for Private Equity.</li>
		</ul>
		</li>
		<li><span class="listtext1">Offer a strategic business opportunity. For example:</span><ul class="listtext1">
			<li>Access to a fast growing niche market.</li>
			<li>Intellectual property in the form of patents, trademarks, and unique technology.</li>
			<li>Access to large, growing, and difficult-to-reach customer segments.</li>
			<li>Or similar benefits.</li>
		</ul>
		</li>
	</ol>
	<h2>Strategic Investors</h2>
	<p>We refer to Strategic Investors as 'Private Equity Lite.' Strategic 
	Investors function much the same way as does a Private Equity group &#8212; with 
	the exception that there is no public investment fund. Strategic Investors 
	invest for themselves. Other than that, Strategic Investors and PEGs have 
	very similar approaches to investing in and growing a company.</p>
	<h2>What Private Equity is NOT</h2>
	<p>Private Equity is not Angel Capital or Venture Capital.</p>
	<ul class="listtext1">
		<li>Angel investors invest in start-up companies, rarely asking for 
		majority control.</li>
		<li>Venture Capital provides capital to early-stage, high-potential, and 
		often high-risk growth companies. Like PEGs, VCs also create investment 
		funds, and also take an equity position in the company, usually after 
		the Series 'A' funding round. Venture Capital is a subset of Private 
		Equity, but not all Private Equity is Venture Capital.</li>
	</ul>

1 个答案:

答案 0 :(得分:0)

查看actual page,违规项目符号上方的段落已应用float:left个CSS。

此CSS可在文件tvgcss.css

中找到
p {
  font-size: 12px;
  font-weight: normal;
  color: #000;
  text-align: left;
  text-decoration: none;
  line-height: 18px;
  float: left;
  width: 100%;
  margin: 0 0 5px 0;
}

移除浮动左位,你应该很好。检查您的网站,确保一切看起来还不错。

或者如果您只想影响该页面style="float:none !important;"添加到列表上方的段落中,就像这样(复制此内容,因为您的错误 - 第一段没有结束):

<h2>Private Equity Criteria</h2>
<p style="float:none !important;">
    To qualify for a Private Equity investment your company needs to:
</p>
<ol>
    <li>
        <span class="listtext1">
            Have a viable business model, customers, revenue, and profitability &#8212; with a
            minimum EBITDA of $1M - $3M.
        </span><ul class="listtext1">
            <li>That means: Neither start-ups nor early stage (pre-revenue) companies qualify for Private Equity.</li>
        </ul>
    </li>
    <li>
        <span class="listtext1">Offer a strategic business opportunity. For example:</span><ul class="listtext1">
            <li>Access to a fast growing niche market.</li>
            <li>Intellectual property in the form of patents, trademarks, and unique technology.</li>
            <li>Access to large, growing, and difficult-to-reach customer segments.</li>
            <li>Or similar benefits.</li>
        </ul>
    </li>
</ol>
<h2>Strategic Investors</h2>
<p style="float:none !important;">
    We refer to Strategic Investors as 'Private Equity Lite.' Strategic
    Investors function much the same way as does a Private Equity group &#8212; with
    the exception that there is no public investment fund. Strategic Investors
    invest for themselves. Other than that, Strategic Investors and PEGs have
    very similar approaches to investing in and growing a company.
</p>
<h2>What Private Equity is NOT</h2>
<p>Private Equity is not Angel Capital or Venture Capital.</p>
<ul class="listtext1">
    <li>
        Angel investors invest in start-up companies, rarely asking for
        majority control.
    </li>
    <li>
        Venture Capital provides capital to early-stage, high-potential, and
        often high-risk growth companies. Like PEGs, VCs also create investment
        funds, and also take an equity position in the company, usually after
        the Series 'A' funding round. Venture Capital is a subset of Private
        Equity, but not all Private Equity is Venture Capital.
    </li>
</ul>

欢迎来到StackOverflow:)