0

Please check this example: http://jsfiddle.net/F8QE5/ I wanted to keep the label 'Password'always in the top portion of the <td>. Currently it's going to the middle section of the <td>. I will be adding more fields in the right <td> dynamically. So always, the label 'Password' should be in the top position. It shouldn't move to the center of <td>.

Anybody know how to solve this issue?

4

3 に答える 3

1

vertical-align: text-top;CSSで試してみてください。

http://www.w3schools.com/cssref/pr_pos_vertical-align.asp

于 2012-11-04T07:44:18.697 に答える
1

これを行う

<td width="150" style="vertical-align:text-top;"> 
   Password:
</td>
于 2012-11-04T07:44:35.293 に答える
1
<td width="150" valign="top">
     Password:
</td>

w3.orgで同じことに関する追加情報を確認できます

于 2012-11-04T07:46:05.000 に答える