如何在像素asp.net中降低表的高度 [英] how to reduce the height of a table in pixel asp.net

查看:75
本文介绍了如何在像素asp.net中降低表的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使我在脚本端将值设置为5px,''表''的高度也不会降低。它的大小与11px相同。

我的代码:



The height of a ''table'' is not reducing even if I set the value to 5px in script side. Its size remains same with 11px.
My code:

.style5
        {
            width: 150px;
            height: 11px;
            z-index: 1;
            left: 44px;
            top: 1px;
            position: absolute;
        }





如何降低高度?

问候。



How to reduce the height?
Regards.

推荐答案

实际呈现的HTML表格大小由内容定义细胞,而不仅仅是风格。它不能低于其内容所需的数量。



-SA
The actually rendered HTML table size is defined by the content of the cells, not just the style. It cannot be less then that required to fit in its content.

—SA


你的表包含任何数据(文本)?如果是这样,行高取决于字体的大小。减小字体大小并检查。如果不是,请将您的HTML代码发送给我们。
does your table contain any data (text)? if so, the row height depend on the size of the font. decrease the font size and check. if not send us your HTML code please.


这篇关于如何在像素asp.net中降低表的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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