2017-02-15 72 views
1

在我的HTML代碼,它是具有<hr noshade>標籤,這是沒有任何反應的Web視圖,但它顯示的頭部和尾部,當我打印到PDF文件中像這樣HTML如何刪除標籤小時的頭部和尾部

enter image description here

這是我css適用風格當<hr noshade>

hr{border-color: #000000 !important; border-top:none !important; height:1px !important;} 

打印PDF文件,請幫幫我,我想刪除它的頭部和尾部的高度

enter image description here

提前致謝。

+0

這可能取決於你如何創建PDF。你使用什麼軟件包? –

回答

2

刪除底部以外的所有邊框。你可以這樣做:

hr{border-color: #000000 !important; border-width:0 0 1px 0 !important; height:1px !important;}
<hr>

0

.hr {background: url(bg/dotted-line-repeat.jpg) repeat-x center center;height: 20px;} 
 

 
hr{background-color:#E5173F;border:medium none;height:1px;margin:20px 100px 0;padding:0;color:#E5173F;}

+0

使用上述hr CSS中的任何一個 –