一本一道久久综合狠狠老精东影业 ,欧美另类激情,欧美精品一区二区久久http://www.aygfsteel.com/ducklyl/category/34658.html用心愛你,努力工作。<br/> zh-cnFri, 23 Oct 2009 18:45:24 GMTFri, 23 Oct 2009 18:45:24 GMT60[轉]page-break-before和page-break-afterhttp://www.aygfsteel.com/ducklyl/archive/2009/10/22/299350.html王生生王生生Thu, 22 Oct 2009 06:00:00 GMThttp://www.aygfsteel.com/ducklyl/archive/2009/10/22/299350.htmlhttp://www.aygfsteel.com/ducklyl/comments/299350.htmlhttp://www.aygfsteel.com/ducklyl/archive/2009/10/22/299350.html#Feedback0http://www.aygfsteel.com/ducklyl/comments/commentRss/299350.htmlhttp://www.aygfsteel.com/ducklyl/services/trackbacks/299350.html

page- break-before和page-break-after CSS屬性并不會修改網頁在屏幕上的顯示,這兩個屬性是用來控制文件的打印方式。每個打印屬性都可以設定4種設定值:auto、always、left和 right。其中Auto是默認值,只有在有需要時,才需設定分頁符號 (Page breaks)。page-break-before若設定成always,則是在遇到特定的組件時,打印機會重新開始一個新的打印頁。page- break-before若設定成left,則會插入分頁符號,直到指定的組件出現在一個左邊的空白頁上。page-break-before若設定成 right,則會插入分頁符號,直到指定的組件出現在一個右邊的空白頁上。page-break-after屬性會將分頁符號加在指定組件后,而非之前。 在下列程序中您將可以看到這些屬性的設定。

<HTML>

<HEAD>

<TITLE>Listing 14-4</TITLE>

</HEAD>

<BODY>

<DIV>This is the first DIV.</DIV>

<DIV STYLE="page-break-before:always">This is the second DIV.</DIV>

<DIV STYLE="page-break-after:always">This is the third DIV.</DIV>

<DIV>This is the fourth DIV.</DIV>

<DIV STYLE="page-break-before:right">This is the fifth DIV.</DIV>

<DIV STYLE="page-break-after:right">This is the sixth DIV.</DIV>

<DIV>This is the last DIV.</DIV>

</BODY>

</HTML>


轉自 http://www.cnblogs.com/JustinYoung/articles/710734.html


王生生 2009-10-22 14:00 發表評論
]]>
HTML轉PDF,支持命令行http://www.aygfsteel.com/ducklyl/archive/2009/07/09/286158.html王生生王生生Thu, 09 Jul 2009 14:25:00 GMThttp://www.aygfsteel.com/ducklyl/archive/2009/07/09/286158.htmlhttp://www.aygfsteel.com/ducklyl/comments/286158.htmlhttp://www.aygfsteel.com/ducklyl/archive/2009/07/09/286158.html#Feedback0http://www.aygfsteel.com/ducklyl/comments/commentRss/286158.htmlhttp://www.aygfsteel.com/ducklyl/services/trackbacks/286158.html     最后找到一個支持命令行的軟件(HTML2PDF Pilot),可以直接將HTML頁面轉成PDF。這樣一來可以省很多時間去再去開發。
    用java實現命令行調用HTML2PDF是一件很簡單的事,如此一來,解決了項目中目前棘手的問題,不過有一點比較郁悶,轉成PDF的時間要好幾秒,因此有一個比較長的等待過程。
    在這里記錄下這個方案,希望能給有遇到這個問題的朋友參考。如果大家有更好的方法,不妨提出來分享。

HTML2PDF Pilot(破解)下載:(支持用命令行調用,可以參看壓縮包中的help.chm)

http://www.ziddu.com/download/5538757/HTML2PDFPilot.rar.html





王生生 2009-07-09 22:25 發表評論
]]>
HTML初級指南-元標簽<meta>http://www.aygfsteel.com/ducklyl/archive/2008/09/24/230880.html王生生王生生Wed, 24 Sep 2008 06:48:00 GMThttp://www.aygfsteel.com/ducklyl/archive/2008/09/24/230880.htmlhttp://www.aygfsteel.com/ducklyl/comments/230880.htmlhttp://www.aygfsteel.com/ducklyl/archive/2008/09/24/230880.html#Feedback0http://www.aygfsteel.com/ducklyl/comments/commentRss/230880.htmlhttp://www.aygfsteel.com/ducklyl/services/trackbacks/230880.html     元標簽meta可以使用盡可能多次如你所需,包括內容屬性content(必須的)、名稱屬性name和http-equiv屬性。

    名稱name屬性可以是你喜歡的任何東西,通常使用的是作者author,關鍵詞keywords和描述description。描述常被搜索引擎(比如Google,百度)用來在搜索結果中描述頁面,而它本身也可能是元標簽中最有用的應用。

    http-equiv屬性取替名稱name屬性會產生HTTP數據頭,它將會發送頁面擁有的信息給服務器。隨后內容屬性content可以是content-type(類型)、expires(時效)、refresh(刷新,多長時間頁面會自動刷新一次)以及set-cookie(設置cookie)。
<html>
   <head>
      <title>Title</title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <meta name="description" content="This is my bloody exciting web page about air conditioners" /> ...
注意
    元標簽之所以重要,是因為它們為搜索引擎所依賴和為頁面建立概況。比如關鍵詞keywords元數據就被廣泛運用。如今,大部分的搜索引擎使用頁面本身的內容,使大部分元數據對于閱讀這個HTML的用戶來說是沒有什么作用的,除了轉換信息以外。




王生生 2008-09-24 14:48 發表評論
]]>
HTML初級指南-span與divhttp://www.aygfsteel.com/ducklyl/archive/2008/09/24/230877.html王生生王生生Wed, 24 Sep 2008 06:44:00 GMThttp://www.aygfsteel.com/ducklyl/archive/2008/09/24/230877.htmlhttp://www.aygfsteel.com/ducklyl/comments/230877.htmlhttp://www.aygfsteel.com/ducklyl/archive/2008/09/24/230877.html#Feedback0http://www.aygfsteel.com/ducklyl/comments/commentRss/230877.htmlhttp://www.aygfsteel.com/ducklyl/services/trackbacks/230877.html     span和div的不同之處在于span是內聯的,用在一小塊的內聯HTML中,而div(想想division是什么意思)元素是塊級的(簡單地說,它等同于其前后有斷行),用于組合一大塊的代碼。
<div id="scissors">
   <p>This is <span class="paper">crazy</span></p>
</div>
    在實踐中,div,特別是span不應該濫用,盡管有其他相左的意見。比如,你要強調單詞“crazy”和加粗類“paper”,可能會用這樣的代碼:
<div id="scissors">
   <p>This is <strong class="paper">crazy</strong></p>
</div>
這是做法比再加一個span比較好。
你所需要記住的是,span和div 是“無意義”的標簽。



王生生 2008-09-24 14:44 發表評論
]]>
主站蜘蛛池模板: 沧州市| 林西县| 宝山区| 海林市| 聂荣县| 伊春市| 芮城县| 东港市| 康乐县| 布拖县| 莱州市| 玉田县| 隆安县| 长泰县| 古浪县| 新建县| 威信县| 财经| 扎赉特旗| 九龙县| 石河子市| 五寨县| 江西省| 濮阳县| 福泉市| 大安市| 新巴尔虎左旗| 科技| 庆城县| 左贡县| 麻江县| 渭源县| 山阳县| 东方市| 浦北县| 都昌县| 府谷县| 新邵县| 调兵山市| 民勤县| 婺源县|