如何使用Jquery更改Css高度,并修复它,当有图像时 [英] How Do I Change Css Height Using Jquery, And Fixed It, When There's An Image
问题描述
你好,
i当我在容器模式下成像时想问一些关于jquery改变文本框高度的事情,
这里是一个例子,
http://imageshack.com/a/img853/719/t7l4.png [ ^ ]
这是我想要的,当图像填充在容器中时,文本框高度是90,
当我输入文本框时它也从90开始。
我试过了,当我输入时文本框,高度变为30,
这里是错误
http://imageshack.com/a/img834/1714/j9kb.png [ ^ ]
有人请帮忙。 ~_~
这是我的css:
# chartPreview
{
position : 已修复;
}。 imgPreview
{
显示 : 无;
}
这里是我的jquery
j( document )。ready( function (
){
hello,
i want to ask something about jquery changing height of my textbox when i've image in the container mode,
here is the example,
http://imageshack.com/a/img853/719/t7l4.png[^]
this is what i want, when the image is filled in the container, the textbox height is 90,
and when i typed at the textbox it started at 90 too.
i've tried, and when i typed at the textbox, the height become 30,
here is the error
http://imageshack.com/a/img834/1714/j9kb.png[^]
somebody please help. ~_~
this is my css :
#chartPreview { position:fixed; }.imgPreview { display:none; }
and here is my jquery
j(document).ready(function (
) {
这篇关于如何使用Jquery更改Css高度,并修复它,当有图像时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!