pCloud Partner Program

略縮語(ellipsis)的html特殊字元與直排走文

程式技術 2016/09/26 12:03
views: 55993 times
略縮語, 也就是... (這裡用三個點來表示, 但在 html 裡, 有特殊字元可用, 分別是水平用的 … 與垂直的 ⋮ 兩個特殊字元 (參考完整版本: https://dev.w3.org/html5/html-author/charref)

另外直排走文的部分可以使用 writing-mode 這個屬性來指定, 如 vertical-rlvertical-lr, 一般中文若為直式走文, 應為從右至左, 所以是 vertical-rl.

不過有趣的是, 在原本的水平走文時, 使用 … 與 ⋮ 都可以正常顯示方向, 但在垂直走文時, 這兩個略縮語, 反而會造成相反的方向, 這點在使用上要特別注意, 或是反過來說, 只需要使用 … 即可, 走文方向控制會處理好這個略縮語的走向.

參考這個在 jsfiddler 的範例:
https://jsfiddle.net/timhuang/jxhhyxkz/2/

用戶插入圖片



另外也請參考略縮語的 css 自動截字的語法: 網頁排版文字排不下的略語語法 http://diary.tw/tim/1041

writing-mode語法參考: http://ithelp.ithome.com.tw/articles/10139081

top

Trackback Address :: http://diary.tw/tim/trackback/1163

  1. Tracked from Dumonds Custom Furniture 2017/08/15 00:09 DELETE

    Subject: Dumonds Custom Furniture

    Get the brightest option for Reclaimed Wood Furniture now in stock in addition at the best price you can get now!
  2. Tracked from Yerba Montana Mate 2017/08/16 02:52 DELETE

    Subject: Yerba Montana Mate

    See top quality bulk yerba mate that's available now plus at the best price. Get it now!
  3. Tracked from crossfire brass burner 2017/08/16 09:03 DELETE

    Subject: crossfire brass burner

    Find here top Warming trends fire pit kit that's available and reasonably priced today!
  4. Tracked from Farmhouse Dining Room Table 2017/08/16 09:50 DELETE

    Subject: Farmhouse Dining Room Table

    See the top available Hand carved wood furniture currently in stock and reasonably priced you can get now!
  5. Tracked from browse around these guys 2017/08/17 07:22 DELETE

    Subject: browse around these guys

    See the greatest option for battery operated quartz clock movements that's available plus at the best price you can get now!
  6. Tracked from quartz clock movements and hands 2017/08/17 18:49 DELETE

    Subject: quartz clock movements and hands

    Get the greatest new clock kits that's in stock in addition at great prices you can get now!
  7. Tracked from high quality fire pits 2017/08/18 05:59 DELETE

    Subject: high quality fire pits

    See top quality crossfire brass burner currently now in stock and at great prices today!
  8. Tracked from Reclaimed Wood Dining Table 2017/08/18 13:18 DELETE

    Subject: Reclaimed Wood Dining Table

    Find the best available Dumonds now now in stock plus currently on sale you can get now!

Write a comment


PREV : [1] : ... [13] : [14] : [15] : [16] : [17] : [18] : [19] : [20] : [21] : ... [467] : NEXT



Nextbit Robin 5.2吋六核心智慧型手機 Microsoft Office 365 中文家用版PKC (無光碟)
ASUS華碩 AC1900 雙頻無線路由器 RT-AC68U 美國 VORNADO 533 渦流空氣循環機 (黑色)
御茶園 每朝健康綠茶(650mlx24入) 每朝健康 雙纖綠茶(650mlx24入)


 Waiting...