ul列表前的HTML空间

时间:2016-10-29 02:26:06

标签: html css

我正试图摆脱最后一句话之间的空间"交易柜台"和第一个要点"具有生产支持的背景"。是的我知道那里有一个中断标签 - 但是即使没有中断标签,空间仍然存在。由于某些原因没有break标记,span标记将不会斜体。



#title span {
    font-size: 1.2em;
}
ul.bullet {
    list-style-type: disc;
}
ul.subbullet {
    list-style-type: circle;
}
span.bold {
    font-weight: bold;
}
span.italic {
    font-style: italic;
}

<p><span class="bold">UBS</span> 1285 Ave of Americas New York, New York 10006 07/14 - 05/16
    <br />
    <span class="bold">Trade Support Specialist</span><span class="italic"> Front office trade support for Cash Equities and Option trading desks.</span>
    <br />
    <ul>
        <li> With a backgournd in Production Support and experience in Linux System Engineering, provide comprehensive Front Line Application support to Floor Traders.</li>
        <li> Responsible for the maintenance, monitoring and permissioning of Order Entry, Vol discovery, Quoting and Hedging Applications. Provide Application Support for Middle Office jBoss and Tomcat Position Keeping Applicatons. Provide Applicaiton Support
            for clearing applications which rely on Oracle and Sybase Databases </li>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:1)

您可以在margin:autop代码上使用ul(但我建议您为这些特定代码和样式添加ID)

css rule

ul,p{
margin:auto;
}

下面的代码段没有中断标记和边距:自动规则

&#13;
&#13;
#title span {
font-size: 1.2em;
}
ul.bullet {
list-style-type: disc;}
}
ul.subbullet{
list-style-type: circle;
}
span.bold {
font-weight: bold;
}
span.italic {
font-style: italic ;
}
li:first:child{
padding:0px;
}
ul,p{
margin:auto;
}
</style>
&#13;
<p> <span class="bold">UBS</span> 1285 Ave of Americas New York, New York 10006                                                07/14 - 05/16<br />
<span class="bold">Trade Support Specialist</span><span class="italic"> Front office trade support for Cash Equities and Option trading desks.</span>
<ul>
<li>    With a backgournd in Production Support and experience in Linux System Engineering, provide comprehensive Front Line Application support to Floor Traders.</li>
<li>    Responsible for the maintenance, monitoring and permissioning of Order Entry, Vol discovery, Quoting and Hedging Applications. Provide Application Support for Middle Office jBoss and Tomcat Position Keeping Applicatons. Provide Applicaiton Support for clearing applications which rely on Oracle and Sybase Databases </li>
&#13;
&#13;
&#13;