1. 程式人生 > >dedecms 織夢學習筆記- css篇

dedecms 織夢學習筆記- css篇

  • h1 標籤中的文字在seo中權重很高,要保留,但是要想不顯示,可以設定為:text-indent:-999px;將文字移到螢幕外
  • letter-spacing:2px ;文字件的間隔;
  • 使用者列表可用 di dt 頭像dd姓名 來做;
  • em 標籤 可用在ul li 裡面 做日期 或 評論數,floa:right;font-style:normal;font-family:Tahoma;這種字型比較飽滿,適合數字和英文
  • 常用顏色:#999深灰色 #666灰色 #333淺灰色 #ccc淡灰色 #f60 #360 綠#369藍 navy海軍藍
  • 文章列表左側小圓點:li 背景圖片設為小圓點的圖片:background:url(..pointer.png) no-repeat left center;
    padding:0 0 0 10px;
  • line-height:150%;適合文字行間距高一點;
  • height 和line-height設定成一樣 ,可文字垂直居中;
  • border-bottom:1px dashed #999;width:98%;設定底邊框