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

css如何使文字方向转90度

2024/3/18 12:05:12发布18次查看
css中可以使用transform属性使文字方向转90度,语法格式为“transform: rotate(90deg)”。transform属性表示元素应用2d或3d转换,当值为rotate时为旋转,正数为顺时针旋转,负数为逆时针旋转。
本教程操作环境:windows7系统、css3&&html5版、dell g3电脑。
<!doctype html><html lang="en"><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>document</title> <style> .box { width: 20px; height: 30px; transform: rotate(90deg); -ms-transform: rotate(90deg); /* internet explorer 9*/ -moz-transform: rotate(90deg); /* firefox */ -webkit-transform: rotate(90deg); /* safari 和 chrome */ -o-transform: rotate(90deg); /* opera */ } </style></head><body> <p class="box">123</p></body></html>
效果:
原效果:
推荐学习:css视频教程
以上就是css如何使文字方向转90度的详细内容。
该用户其它信息

VIP推荐

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