html cellpadding单元格的左侧 [英] html cellpadding the left side of a cell

查看:113
本文介绍了html cellpadding单元格的左侧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我不使用css样式表。



这是我的代码< table border =1CELLPADDING =5> 右边的大小,例如我想要10。



谢谢。

解决方案

。HTML不允许填充不等。当你说你不想使用样式表时,这是否意味着你可以使用内联css?

 << ;表> 
< tr>
< td style =padding:5px 10px 5px 5px;>内容< / td>
< td style =padding:5px 10px 5px 5px;>内容< / td>
< / tr>
< / table>

如果您因为某些原因而绝望地不使用样式表,您也可以使用JS来完成此操作。

I want to pad my text in a cells on the right side with additional space .

I don't use css style sheets .

this is my code <table border="1" CELLPADDING="5"> on right size for example I want 10.

Thanks .

解决方案

This is what css is for... HTML doesn't allow for unequal padding. When you say that you don't want to use style sheets, does this mean you're OK with inline css?

<table>
    <tr>
        <td style="padding: 5px 10px 5px 5px;">Content</td>
        <td style="padding: 5px 10px 5px 5px;">Content</td>
    </tr>
</table>

You could also use JS to do this if you're desperate not to use stylesheets for some reason.

这篇关于html cellpadding单元格的左侧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆