- 2/5
- 1
- 2
- 3
- 4
- 5
织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!
CSS控制字符竖向排列,比较不错,有时候在排版的时候,我们需要将文字竖向排列,这个代码扩展性很强,可以循环多用。
<html> <head> <style type="text/css"> .verticaltext{ position: absolute; left: 13px; top: 80px; width: 16px; writing-mode: tb-rl; } </style> </head> <body> <script type="text/javascript"> var myverticaltext='<div class="verticaltext">我是竖着排的,好看吗?</div>' var bodycache=document.body if (bodycache && bodycache.currentStyle && bodycache.currentStyle.writingMode) document.write(myverticaltext) </script> </body>