利用CSS實現豎排文字文字效果

來源:互聯網
上載者:User
  <html>
  <head>
  <title>豎排文字</title>
  <style type="text/css">
 .tnt {
 Writing-mode: tb-rl;
 Text-align: left;
 font-size: 9pt;
 line-height: 50px;
    }
  </style>
  </head>
  <body>
  <div class="tnt">
     確實,在表現文字的豎排在文文書處理辦公軟體中非常容易就可以實現。由於這種效果在網頁製作中並不多見,所以這個問題的討論比較少。但是在製作具有中國古代特色的網站,如文字曆史、書法、名勝古迹旅遊等等網站時,如果用上豎排的文字,配以古色古香的背景及樸實陳舊的色彩,在視覺上會獲得意想不到的效果。
  </div>
  </body>
  </html>
相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.