将元素在td中对齐在一行 [英] Align elements in td in one line
本文介绍了将元素在td中对齐在一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个表,其中头行有2个textareas和2个按钮。
http://jsfiddle.net/8qzmxwa9/1/
我使用 margin:0 auto;
I have a table where in head row there are 2 textareas and 2 buttons.
http://jsfiddle.net/8qzmxwa9/1/
I use margin: 0 auto;
style='white-space:nowrap;'
在元素上使它们在一行。但是你可以看到,在小提琴,他们有点不平衡。
on elements to make them be in one line. But as you can see at fiddle they are a little bit uneven. How can I make them stay in one line.
推荐答案
textarea
{
text-align: center;
height: 35px;
width: 280px;
margin: 0 auto;
font-size: 27px;
vertical-align: bottom;
}
DEMO
这篇关于将元素在td中对齐在一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文