在Mac IE5上使用CSS对中表 [英] Centering Tables with CSS on Mac IE5

查看:35
本文介绍了在Mac IE5上使用CSS对中表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我们有一个需要IE的应用程序。我们最近加入了CSS

滚动区域。滚动字段应该居中。它们是

,除了Mac的IE5。我在网上尝试了各种建议

没有任何运气。我有下面整个页面的代码。我已经把我尝试过的所有Mac特定代码都拿了

。中心

由一个单独的< div>完成。标签。如果有人知道如何将滚动

区域放到Mac IE5的中心我会非常感谢这些信息。


谢谢,

Raffi


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


< style type =" text / css">

div.scroll {

身高:100px;

宽度:350px;

溢出:auto;

border:2px solid#0000ff;

background-color:#ffffff;

padding:8px;}

< / style>


< html>< body>

< div align =" center">

< h4> Bill'的电气供应订单表< / h4>

< form action =" index.php" method =" post">

< div class =" scroll">

< table width =" 300"边界=" 2英寸CELLPADDING = QUOT; 2英寸cellspacing =" 2"

bordercolor ="#0099FF">

< tr>

< td>

项目:

< / td>

< td>

< select name =" item"> ;

<选择选项>电汇< /选项>

<选项>连接器< /选项>

<选项>螺丝< / option>

< / select>

< / td>

< / tr>

< tr>

< td>

数量:

< / td>

< td> ;

< input name =" quantity"类型= QUOT;文本" />

< / td>

< / tr>

< tr>

< ; td>

颜色:

< / td>

< td>

<输入名称= QUOT;颜色"类型= QUOT;文本" />

< / td>

< / tr>

< tr>

< ; td>

品牌:

< / td>

< td>

<输入名称= QUOT;品牌"类型= QUOT;文本" />

< / td>

< / tr>

< tr>

< ; td>

型号:

< / td>

< td>

<输入名称= QUOT;模型"类型= QUOT;文本" />

< / td>

< / tr>

< / table>

< / div>


< br>< br>

< input type =" submit"命名= [提交" value =" Submit">

< / form>

< / div>

<?php

if($ _POST [''submit''] || $ _POST [''quantity'']){

echo $ _POST [''item'']," ",$ _POST [''数量''];

}

?>

解决方案

_POST [''submit''] ||


_POST [''quantity'']){

echo


_POST [''item'']," ",

Hi,

We have an application that requires IE. We recently incorporated CSS
scroll areas. The scroll fields are supposed to be centered. They are
except for IE5 for the Mac. I have tried various suggestions on the net
without any luck. I have the code for the whole page below. I''ve taken
out all the Mac specific code that I tried and didn''t work. Centering
is done by a separate <div> tag. If anyone knows how to get the scroll
area to center for Mac IE5 I''d very much appreciate the info.

Thanks,
Raffi

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

<style type="text/css">
div.scroll {
height: 100px;
width: 350px;
overflow: auto;
border: 2px solid #0000ff;
background-color: #ffffff;
padding: 8px;}
</style>

<html><body>
<div align="center">
<h4>Bill''s Electrical Supply Order Form</h4>
<form action="index.php" method="post">
<div class="scroll">
<table width="300" border="2" cellpadding="2" cellspacing="2"
bordercolor="#0099FF">
<tr>
<td>
Item:
</td>
<td>
<select name="item">
<option selected>Wire</option>
<option>Connector</option>
<option>Screw</option>
</select>
</td>
</tr>
<tr>
<td>
Quantity:
</td>
<td>
<input name="quantity" type="text" />
</td>
</tr>
<tr>
<td>
Color:
</td>
<td>
<input name="color" type="text" />
</td>
</tr>
<tr>
<td>
Brand:
</td>
<td>
<input name="brand" type="text" />
</td>
</tr>
<tr>
<td>
Model:
</td>
<td>
<input name="model" type="text" />
</td>
</tr>
</table>
</div>

<br><br>
<input type="submit" name="submit" value="Submit">
</form>
</div>
<?php
if ($_POST[''submit''] || $_POST[''quantity'']){
echo $_POST[''item''], " ", $_POST[''quantity''];
}
?>

解决方案

_POST[''submit''] ||


_POST[''quantity'']){
echo


_POST[''item''], " ",


这篇关于在Mac IE5上使用CSS对中表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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