W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
tan() 函数
使用 tan() 函数设置元素的宽度:
width: calc(100px * tan(45deg)):
Hello World!
calc(100px * tan(0.125turn)):
Hello World!
width: calc(100px * tan(0.5773502)):
Hello World!
width: calc(100px * tan(pi / 3)):
Hello World!