您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

css如何让字竖着写

2024/4/9 1:32:10发布13次查看
css让字竖着写的方法:使用【writing-mode】设置对象书写方向,语法为【writing-mode : lr-tb、tb-rl】,其中【lr-tb】为从左向右,从上往下,【tb-rl】从上往下,从右向左。
本教程操作环境:windows7系统、css3版,dell g3电脑。
css让字竖着写的方法:
writing-mode(设置对象书写方向)
语法:
writing-mode : lr-tb、tb-rl
参数:
lr-tb:从左向右,从上往下  
tb-rl:从上往下,从右向左
css代码:
div { writing-mode: tb-rl; }
示例:
<!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=gb2312" /> <title>竖列排版实例</title> <style> div { writing-mode: tb-rl; } </style> </head> <body> <div>我是竖列排版</div> </body> </html>
效果图:
相关教程推荐:css视频教程
以上就是css如何让字竖着写的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product