调整.CSS的边距

时间:2015-04-24 06:49:54

标签: css pdf margin margins

我正在使用程序将日志转换为PDF,但每次生成PDF文档时,左边距都会更大。这与.css文件有关吗?以下是该文件中的内容的副本:

@charset "UTF-8";
/*

Report Type: onePage
Report Category: China
Rows Per Page: 14
Data Type: Flight

*/

@media print 
{
    .content_left
    {
        height:1in;
    }
}


tbody td,th
{
    font-size:6.5pt;
}

thead td
{
    font-size:6.5pt;
}

.p1us
{
    color:grey;
}
.twoCell_top
{
    border-bottom: solid 1px #000;
}

thead th.secondaryColumnHeading{
    font-weight: 600;
    font-size:6pt;
}
thead th.tertiaryColumnHeading
{
    font-size:6pt;
}

#date
{
    height:.25in;
    width:.5in;
}

#journey {width:1in;}

.borderTopOnly
{
    border:solid 1px white;
}

th.grandTotal
{
    border-width: 0px;
    /*text-align: right;*/
}

th.pageTotals
{
    border-width: 0px;
    /*text-align: right;*/
}

.text
{
    width:1in;
    white-space:normal;
    height:.35in;
}

.text_small
{
    width:.7in;
}

.text_medium
{
    width:.6in;
    white-space:normal;
    height:100%;
}

0 个答案:

没有答案