在css中设置文本框的高度 - (减号)变量div高度(div高度可以不同) [英] set height of textbox -(minus) variable div height(div height can differ) in css???

查看:316
本文介绍了在css中设置文本框的高度 - (减号)变量div高度(div高度可以不同)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有一个文本框,其高度由css设置为%。就在上面我有一个div菜单,其中包含表格。 div的高度可能会有所不同,具体取决于显示的菜单项数量。 

I have a textbox which height i set by css in %. Just above i have a div menu which contains table. The height of the div can vary dependent on how many menu items is shown. 

所以我需要的是:

文本框的高度这是93% - div的高度是否可能在CSS?我知道我可以在Jquery或javascript中轻松实现,但是它可以在css中使用吗?

height of the textbox which is 93% - height of div is it possible in css? I know i can do it in Jquery or javascript easily but is it possible in css???

提前谢谢你:)

推荐答案

hiii,

css属性值是静态的,你无法通过其他财产的价值来计算

the css property value is static, you can not calculate it via other property's value


这篇关于在css中设置文本框的高度 - (减号)变量div高度(div高度可以不同)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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