2013-05-21 38 views

回答

0

我認爲你可以找到你所搜索的內容在這裏: [紙張樣式而不圖片] [

.list li { 
    list-style: none; 
    border-bottom: 1px dotted #ccc; 
    text-indent: 25px; 
    height: auto; 
    padding: 10px; 
    text-transform: capitalize; 
} 
.list li:hover { 
    background-color: #f0f0f0; 
    -webkit-transition: all 0.2s; 
    -moz-transition: all 0.2s; 
    -ms-transition:  all 0.2s; 
    -o-transition:  all 0.2s; 
} 

]

link

0

經典的asp與打印a4大小無關,它爲構建頁面打印的HTML,CSS的職責。

爲每個頁面創建部分,並使用下面的代碼來調整邊距,高度和寬度。

如果您正在打印A4尺寸。

Size : 8.27in and 11.69 inches 

@page Section1 { 
    size:8.27in 11.69in; 
    margin:.5in .5in .5in .5in; 
    mso-header-margin:.5in; 
    mso-footer-margin:.5in; 
    mso-paper-source:0; 
} 



div.Section1 { 
    page:Section1; 
} 

然後創建一個包含您所有內容的div。

<div class=Section1> 
    type your content here... 
</div> 

你可以找到關於打印樣式表的更多信息,以及如何使用它們here

相關問題