English 中文(简体)
职位: 相对不从事E9的工作?
原标题:position:relative not working in IE9?
  • 时间:2011-11-24 10:04:05
  •  标签:
  • html
  • css

代表全体

I am developing a webpage in which I am using a table to show the contents. In the table I have a header part and a content part.

传真:

<div style="height:100px;overflow:auto;">
<table>
<thead>
 <tr>
  <td>ID</td>
  <td>Name</td>
  <td>Address</td>
 </tr>
</thead>
<tbody>
 <tr>
  <td>1</td>
  <td>Test Name</td>
  <td>Test Address</td>
 </tr>
  <tr>
  <td>2..</td>
  <td>Test Name1..</td>
  <td>Test Address123..</td>
 </tr>
 <tr>
  <td>1</td>
  <td>Test Name</td>
  <td>Test Address</td>
 </tr>
  <tr>
  <td>2..</td>
  <td>Test Name1..</td>
  <td>Test Address123..</td>
 </tr>
<tr>
  <td>1</td>
  <td>Test Name</td>
  <td>Test Address</td>
 </tr>
  <tr>
  <td>2..</td>
  <td>Test Name1..</td>
  <td>Test Address123..</td>
 </tr>
<tr>
  <td>1</td>
  <td>Test Name</td>
  <td>Test Address</td>
 </tr>
  <tr>
  <td>2..</td>
  <td>Test Name1..</td>
  <td>Test Address123..</td>
 </tr>
<tr>
  <td>1</td>
  <td>Test Name</td>
  <td>Test Address</td>
 </tr>
  <tr>
  <td>2..</td>
  <td>Test Name1..</td>
  <td>Test Address123..</td>
 </tr>
<tr>
  <td>1</td>
  <td>Test Name</td>
  <td>Test Address</td>
 </tr>
  <tr>
  <td>2..</td>
  <td>Test Name1..</td>
  <td>Test Address123..</td>
 </tr>
<tr>
  <td>1</td>
  <td>Test Name</td>
  <td>Test Address</td>
 </tr>
  <tr>
  <td>2..</td>
  <td>Test Name1..</td>
  <td>Test Address123..</td>
 </tr>
<tbody>
</table>
</div>

CSS:

thead tr   { 
position:relative; 
top: expression(offsetParent.scrollTop); 
}

在记录数量超过一定限度时,我想使标题成为静止部分。 这意味着它不应 with倒记录。

我正在使用上述《特别安全法》,但没有工作。 谁能建议我这样做? 我正在使用IE9。

Thanks, Arvind.

问题回答

您应使用<条码>:绝对或<条码>:固定





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签