过高<输入类型=文字>尽管设定高度。 [英] Overly tall <input type=text> despite setting height.

查看:66
本文介绍了过高<输入类型=文字>尽管设定高度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个< input type = texttag占用太多空间

垂直。它在< td中具有固定的高度,并且我已将< input>'样式中的

高度值设置为10px,小于< td>'s

高度,使用正常的height = 14设置为14。参数。

出于某种原因,< input占用< td>的整个垂直空间

,我知道因为我设置了< td bgcolor = red> ;。

我可以看到大约10像素高的输入区域然后

4行灰色像素。


总结一下:

< td valign =" center" BGCOLOR = QUOT;红色" height =" 14">

< input type =" text" style =" height:10px; font-size:7pt;">

< / td>


所以拼图是:

我应该总共看到至少4行红色像素,但我不这么认为。

为什么这不能正常工作,从表面上看,是这样的?


谢谢。

解决方案


< td valign =" center" BGCOLOR = QUOT;红色" height =" 14">

< input type =" text" style =" height:10px; font-size:7pt;">

< / td>



我发现将bgcolor =" red"

更改为style =" background:red"解决问题。


te ******* **@yahoo.com 写道:


>< td valign =" center" BGCOLOR = QUOT;红色" height =" 14">
< input type =" text" style =" height:10px; font-size:7pt;">
< / td>



我发现将bgcolor =" red"

更改为style =" background:red"解决了这个问题。



您的多个帖子显示您在这里挣扎。相反,作为一个代码猴子并在你的浏览器上抛出奇怪的代码,你需要花费b
$ b喜欢意大利面并看到什么棒,为什么不先学习基础知识。


转到 http://www.htmldog.com (不是附属,只是他们有很好的

教程)并通过基本的HTML和CSS教程。

最后它会为你节省很多*时间和挫折。


-

保重,


Jonathan

- ------------------

LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


3月20日上午11:29,Bergamot< berga ... @ visi.comwrote:


这里没有人想要给那些不愿意投入b $ b b的人提供答案自己一点努力。



你认为我没有搜索过你可以假装

我在向你提出一个无理要求真相

你是我要问的最后一个人,因为你显然

还不够成熟,不能与陌生人打交道。


Hi all,

I have an <input type=texttag that is taking up too much space
vertically. It''s in a <tdthat has a fixed height, and I''ve set the
height value in the <input>''s style to be 10px, less than the <td>''s
height which is set to 14 using a normal "height=14" parameter.
For some reason the <inputis taking up the entire vertical space
of the <td>, which I know because I set <td bgcolor=red>.
I can see the input area which is about 10 pixels high and then
4 rows of gray pixels.

To summarize:
<td valign="center" bgcolor="red" height="14">
<input type="text" style="height: 10px; font-size: 7pt;">
</td>

So the puzzle is:
I should see at least 4 rows of red pixels total, but I do not.
Why is this not working as one might, on the face of it, expect?

Thanks.

解决方案

<td valign="center" bgcolor="red" height="14">
<input type="text" style="height: 10px; font-size: 7pt;">
</td>

I''ve discovered that changing bgcolor="red"
to style="background:red" fixes the problem.


te*********@yahoo.com wrote:

><td valign="center" bgcolor="red" height="14">
<input type="text" style="height: 10px; font-size: 7pt;">
</td>


I''ve discovered that changing bgcolor="red"
to style="background:red" fixes the problem.

Your multiple posts reveal that you are floundering about here. Instead
of being a code monkey and throwing odd bits of code at your browser
like pasta and seeing what sticks, why not learn the basics first.

Go to http://www.htmldog.com (not affiliated, just that they have good
tutorials) and work your way through the basic HTML and CSS tutorials.
In the end it will save you *a lot* of time and frustration.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


On Mar 20, 11:29 am, Bergamot <berga...@visi.comwrote:

Nobody here wants to spoon feed answers to someone who isn''t willing to
put in a little effort themselves.

You presume I haven''t searched so that you can pretend
I''m making an unreasonable request of you, when in truth
you are the last person I''d ask because you obviously
aren''t mature enough to deal with strangers.


这篇关于过高&lt;输入类型=文字&gt;尽管设定高度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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