css或者html5中,如何让文字从下往上显示,英文的,就像正常的一行字逆

html-css08

css或者html5中,如何让文字从下往上显示,英文的,就像正常的一行字逆,第1张

用JS把文字倒序

var reverse = function(str){

return str.split('').reverse().join('')

}

然后放置文字的标签的css写上 writing-mode:vertical-lr

你是不是在某些注册时候看到年份什么的,下拉列表框有时候会上面下面都有,很长一大串, 那不是定义了什么而是因为下拉列表太多,都朝下的话整个当前页面无法承载,这是select固有的,并不是我们能随意操纵的,

就我所知select还没有操纵列表向上显示的属性呢

可以做到<body>

<div style="width:200pxheight:300px">

<marquee direction="up" truespeed="truespeed" height="300px" behavior="scroll">

<p>hellohellohellohellohellohellohellohellohellohello</p>

<p>hellohellohellohellohellohellohellohellohellohello</p>

<p>hellohellohellohellohellohellohellohellohellohello</p></marquee></div>

</body