text-align justify间距仍不适用于字间距

时间:2014-10-13 09:40:24

标签: javascript jquery html css

我的div中有段落,而我使用text-align:justify;它在单词之间有空格,无论我做什么都没有修复它甚至字间距

这里是我的HTML

<div class="work span3">
    <img src="../../Content/Images/LastWork/Real local industry.jpg" alt="" class="example-image">
    <h4>Real local industry
    </h4>
    <p>
        Tharwa Breda Petroleum Service company is one of the petroleum sector companies  launched its local production for the well head and X-mas trees in Nov. , 2012 to be the first company in Egypt and Middle East working and Certified as API-6A for this kind of industry .This Project is a part of oil ministry and Egyptian government plan for economic independence and self sufficiency which are the legitimate objectives for our nation to pursue.
    </p>
    <div class="icon-awesome">
        <a href="../../Content/Images/LastWork/Real local industry.jpg" data-lightbox=" example-1">
            <i class="icon-search"></i>
        </a>

    </div>
</div>

这里是css

.portfolio .work
{
    background: none repeat scroll 0 0 #F8F8F8;
    border-bottom: 2px solid #E6170D;
    float: left;
    height: 590px;
    margin-left: 32px !important;
    padding: 5px 5px 20px;
    position: relative;
    width: 20% !important;
}
.portfolio .work p
{
    font-size: 12PX;
    font-style: italic;
    line-height: 22px;
    text-align: center;
}

没有任何影响20%宽度的空间我必须使div更大才能工作,我不能这样做

0 个答案:

没有答案