简体   繁体   English

我如何对齐留在里面的跨度文本 <td> ?

[英]How can i align span text left inside <td>?

This is my span tag inside td 这是我td中的span标签

<span style="color:#556B2F;font-size:14px;font-weight:bold;"> * Welcom to the Span world</span>

Here i want to align span text left side how can i do this,thanks for your help. 在这里,我想使跨度文本左侧对齐,谢谢您的帮助。

You no need to do anything. 您无需执行任何操作。 Default behavior is left alignment only or put 'align=left' in your td. 默认行为是仅左对齐或在您的td中输入'align = left'。

I thing your question is positioning content set right side not left side because flow structure is top to bottom and left to right so default position left. 我的问题是定位content set right side而不是左侧,因为流程结构是从上到下和从左到右,因此默认位置为左。 But i give you answer for set left side. 但是我给你答案左边。 you can use table td align property in html and css way you can do. 您可以使用HTML和CSS方式使用table td align属性。

table td{
    text-align:left;
}

Check this demo jsFiddle 检查这个演示jsFiddle

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM