<label class="la"></label>
<input type="text" class="textBox"/>
css:
.la{text-align:left}
.textBox{text-align:right}
text-align是文本对齐样式,有三个取值,分别是:left、center、right。
左对齐用align=“left”或者可以用
style=“align:left“
文字飘下用<marquee>
<body><TABLE>
<TBODY>
<TR>
<TD
>
<MARQUEE
scrollAmount=3
direction=down
behavior=alternate
height=480>
<MARQUEE
scrollAmount=3
behavior=alternate
width=550>
<P
align=center>
<FONT
color=red
size=6><B>这里写你想要写的文字</B></FONT></P></MARQUEE></MARQUEE></TD></TR></TBODY></TABLE>
<html><head><style>body {
text-align: center /* 页面元素居中 */
}
.txtcss1 {
text-align: right /* 用于文字右对齐 */
}
</style></head>
<body><img src="...">
<textarea class="txtcss1">文字右对齐</textarea>
<textarea>文字左对齐</textarea>
</body></html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)