通常情况下,textareas只是枯燥的老长方形:
但是,是否有可能形成类似于星球大战入门的文本区域?
**注意:灵感来自SO#20734620:textarea的异常形状 - 请注释.*
更新:感谢Niet the Dark Absol我能够让它运转起来.只需要玩字体和颜色.
textarea { width:600px; height:500px; transform:perspective(1000px) rotateX(45deg); display:block; margin:0 auto; text-align: center; line-height:200%; color: yellow; background-color: black; font-size: 1.75em; }
Niet the Dar.. 13
尝试3D变换:
#starwarstextareaofawesome { width:600px; height:500px; transform:perspective(1000px) rotateX(45deg); }
演示
尝试3D变换:
#starwarstextareaofawesome { width:600px; height:500px; transform:perspective(1000px) rotateX(45deg); }
演示