Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
503 views
in Technique[技术] by (71.8m points)

css - 表格元素的“顶部”样式不会将表格向下移动到较低位置(“top” style of table element not moving table down to lower position)

I read this thread: Element not moving from top but I'm not sure it relates to what I'm doing.

(我读了这个线程: 元素没有从顶部移开,但是我不确定它与我在做什么有关。)

I have a test page that echoes out report data using PHP from a MYSQL database and the table's tag line of code is:

(我有一个测试页面,该页面使用PHP从MYSQL数据库中回显报告数据,该表的代码行是:)

<table border='1'>

what I'd like to have is the table to position itself 27 pixels down from the top of the page so it is not in the background underneath the button I've got at the top.

(我想要的是表格,该表格将其自身放置在页面顶部下方27像素的位置,因此该表格不在背景中,位于我位于顶部的按钮下方。)

the button's code is:

(该按钮的代码是:)

<input type="button" onclick="emptyReport();" id="Button1" name="button" value="Clear Report" 
style="position:absolute;left:1px;top:1px;width:96px;height:25px;font-family:Arial;font-size:13px;z-index:5">

what css property do I need to use to do this?

(我需要使用什么CSS属性来执行此操作?)

I'm surprised I couldn't find anything on google considering this issue is overly simple.

(考虑到这个问题过于简单,我很惊讶我在Google上找不到任何东西。)

thanks.

(谢谢。)

  ask by Adam Evanovich translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...