国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

設計適用于打印的CSS樣式

2024-07-11 08:30:04
字體:
來源:轉載
供稿:網友

大多數Web設計師對打印控制還不是很熟悉,他們往往更迷戀像素,而不是打印機。在現實世界中,很多人依賴從網站上打印網頁來參考: 在這個數字時代, 在一些特殊的場合,很多人手中還會拿著紙張。Web開發人員可以采取一些措施來彌補打印機和液晶屏之間的差距。
  為打印機而不是屏幕設計的樣式
 

CSS Code復制內容到剪貼板
  1. /* 樣式將只應用于打印 */   @media print {   
  2.          
  3. }  

  注* 也可通單獨的CSS文件, 設置link的 media="print" 屬性來指定此樣式專用于打印
 

CSS Code復制內容到剪貼板
  1. <link type="text/<span style="width: auto; height: auto; float: none;" id="8_nwp"><a style="text-decoration: none;" mpid="8" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=5871c731969a47e&k=css&k0=css&kdi0=0&luki=10&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=7ea46919731c8705&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F5933%2Ehtml&urlid=0" id="8_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">css</span></a></span>" rel="<span style="width: auto; height: auto; float: none;" id="9_nwp"><a style="text-decoration: none;" mpid="9" target="_blank" href="http://cpro.baidu.com/cpro/ui/uijs.php?adclass=0&app_id=0&c=news&cf=1001&ch=0&di=128&fv=0&is_app=0&jk=5871c731969a47e&k=style&k0=style&kdi0=0&luki=4&n=10&p=baidu&q=06011078_cpr&rb=0&rs=1&seller_id=1&sid=7ea46919731c8705&ssp2=1&stid=0&t=tpclicked3_hc&tu=u1922429&u=http%3A%2F%2Fwww%2Eadmin10000%2Ecom%2Fdocument%2F5933%2Ehtml&urlid=0" id="9_nwl"><span style="color:#0000ff;font-size:14px;width:auto;height:auto;float:none;">style</span></a></span>sheet" href="css/print.css" media="print">  

  為您的網站重塑整個CSS是沒有必要的,整體而言,由打印繼承默認樣;僅對不同的需要加以限定。為了節省打印時的碳粉,大多數瀏覽器會自動反轉顏色。為了達到最佳效果,應使色彩變化明顯:

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 泉州市| 中卫市| 弥勒县| 芷江| 普宁市| 固始县| 肃南| 镇巴县| 昂仁县| 达拉特旗| 阿拉尔市| 乌兰察布市| 南丹县| 玉田县| 资溪县| 从化市| 静安区| 巍山| 临夏县| 新疆| 平原县| 新巴尔虎右旗| 玛纳斯县| 临海市| 老河口市| 嘉鱼县| 白水县| 黔西县| 双城市| 泰州市| 榕江县| 延寿县| 平原县| 和龙市| 沧源| 贞丰县| 姚安县| 安陆市| 闽侯县| 曲周县| 金平|