问题描述
大家好,
我有一个< 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行红色像素,但我不这么认为。
为什么这不能正常工作,从表面上看,是这样的?
谢谢。
我发现将bgcolor =" red"
更改为style =" background:red"解决问题。
我发现将bgcolor =" red"
更改为style =" background:red"解决了这个问题。
您的多个帖子显示您在这里挣扎。相反,作为一个代码猴子并在你的浏览器上抛出奇怪的代码,你需要花费b
$ b喜欢意大利面并看到什么棒,为什么不先学习基础知识。
转到(不是附属,只是他们有很好的
教程)并通过基本的HTML和CSS教程。
最后它会为你节省很多*时间和挫折。
-
保重,
Jonathan
- ------------------
LITTLE WORKS STUDIO
你认为我没有搜索过你可以假装
我在向你提出一个无理要求真相
你是我要问的最后一个人,因为你显然
还不够成熟,不能与陌生人打交道。
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.
I''ve discovered that changing bgcolor="red"
to style="background:red" fixes the problem.
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
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.
这篇关于过高<输入类型=文字>尽管设定高度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!