相信大家在 Google 可以找到很多解法,這幾天在 Facebook 發現更精彩的解決方式,就是用 CSS:before 跟 inline-block,底下提供範例:
html 程式碼
<!DOCTYPE html> <html> <head> <meta charset=utf-8 /> <title>JS Bin</title> </head> <body> <div class="ot"> <div class="wrapper"></div> </div> </body> </html>