+ -
当前位置:首页 → 问答吧 → 求一样式

求一样式

时间:2011-06-27

来源:互联网

HTML code


<table x:str border=0 cellpadding=0 cellspacing=0 width=1108 style='border-collapse:
 collapse; table-layout:fixed; width:832pt; border: 1;'>
 <col width=57 style='mso-width-source:userset;mso-width-alt:1824;width:43pt'>
 <col width=72 span=6 style='mso-width-source:userset;mso-width-alt:2304;
 width:54pt'>
 <col width=65 style='mso-width-source:userset;mso-width-alt:2080;width:49pt'>
 <col width=57 style='mso-width-source:userset;mso-width-alt:1824;width:43pt'>
 <col width=72 span=6 style='mso-width-source:userset;mso-width-alt:2304;
 width:54pt'>
 <col width=65 style='mso-width-source:userset;mso-width-alt:2080;width:49pt'>
 <tr height=25 style='height:18.75pt'>
  <td colspan=5 height=25 class=xl233624 style='height:18.75pt'>XXXX</td>
  <td colspan=3 class=xl253624 style='border-left:none' align=center> <font class="font73624" >SNP</font></td>
 </tr>
 
 <tr height=37 style='height:27.75pt'>
  <td colspan=5 rowspan=2 height=82 class=xl273624 style='height:61.5pt'>
  <img src="test.php?codebar=BCGcode39extended&text=MEC600-010">
  </td>
  <td colspan=3 class=xl283624 style='border-left:none'>15</td>
 </tr>
 <tr height=45 style='height:33.75pt'>
  <td colspan=3 height=45 class=xl313624 style='height:33.75pt;border-top:none;
  border-left:none'>SNP条形码</td>
 </tr>
 <tr height=35 style='height:33.75pt'>
  <td colspan=6 rowspan=4 height=141 class=xl323624 style='height:105.75pt'>
  <img src="test.php?codebar=BCGcode39extended&text=237101PW0A">
  </td>
  <td colspan=2 class=xl313624 style='height:18.75pt;border-top:none;border-left:none'>检查印</td>
 </tr>
 <tr height=45 style='height:33.75pt'>
  <td width="346" height=45 class=xl303624 style='height:33.75pt;border-top:none;
  border-left:none'> </td>
  <td width="403" class=xl223624 style='border-top:none;border-left:none'> </td>
 </tr>
 <tr height=25 style='height:18.75pt'>
  <td colspan=2 height=30 class=xl333624 style='height:18.75pt;border-left:
  none'>Lot No</td>
 </tr>
 <tr height=26 style='height:19.5pt'>
  <td colspan=2 align=center height=26 class=xl343624 style='height:19.5pt;border-left:none'>
00215*5<br />
00258*5<br />
00215*5
  </td>
 </tr>
 <tr height=19 style='height:14.25pt'>
  <td rowspan=2 height=38 class=xl363624 width=61 style='height:28.5pt;
  border-top:none;width:43pt'>SSM<br>
    <font class="font83624">B100</font></td>
  <td colspan=7 rowspan=2 class=xl373624>ABC CORP</td>
 </tr>

</table>




以上是页面代码和显示结果。现在用IE打印预览的时候不能正常显示lotno对应的值,假如我有3个,预览可能最多显示2个。请问如何修改?谢谢!

PS:firefox能正常显示,但是最底下的那条边线看不见了,请问是什么原因?

作者: lazygc520   发布时间: 2011-06-27

你css样式都没发,怎么看?

作者: aspwebchh   发布时间: 2011-06-27

CSS code

<!--table
    {mso-displayed-decimal-separator:"\.";
    mso-displayed-thousand-separator:"\,";}
.font53624
    {color:windowtext;
    font-size:9.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;}
.font63624
    {color:windowtext;
    font-size:9.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;}
.font73624
    {color:windowtext;
    font-size:14.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:"Times New Roman", serif;
    mso-font-charset:0;}
.font83624
    {color:windowtext;
    font-size:14.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:"Times New Roman", serif;
    mso-font-charset:0;}
.xl153624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:general;
    vertical-align:bottom;
    mso-background-source:auto;
    mso-pattern:auto;
    white-space:nowrap;}
.xl223624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:general;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl233624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:general;
    vertical-align:top;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl243624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;
    mso-number-format:General;
    text-align:general;
    vertical-align:top;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl253624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:general;
    vertical-align:top;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl263624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;
    mso-number-format:General;
    text-align:general;
    vertical-align:top;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl273624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:22.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:"Times New Roman", serif;
    mso-font-charset:0;
    mso-number-format:General;
    text-align:center;
    vertical-align:middle;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}

作者: lazygc520   发布时间: 2011-06-27

CSS code

.xl283624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:22.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:"Times New Roman", serif;
    mso-font-charset:0;
    mso-number-format:"\@";
    text-align:center;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl293624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:22.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;
    mso-number-format:"\@";
    text-align:center;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl303624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:26.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;
    mso-number-format:General;
    text-align:center;
    vertical-align:middle;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl313624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:center;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl323624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:44.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:"Times New Roman", serif;
    mso-font-charset:0;
    mso-number-format:General;
    text-align:center;
    vertical-align:middle;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl333624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:"Times New Roman", serif;
    mso-font-charset:0;
    mso-number-format:General;
    text-align:general;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl343624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:"Times New Roman", serif;
    mso-font-charset:0;
    mso-number-format:General;
    text-align:center;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl353624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;
    mso-number-format:General;
    text-align:center;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl363624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:center;
    vertical-align:top;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:normal;}
.xl373624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:22.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:center;
    vertical-align:middle;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl383624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:22.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;
    mso-number-format:General;
    text-align:center;
    vertical-align:middle;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl393624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:14.0pt;
    font-weight:700;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:128;
    mso-number-format:General;
    text-align:center;
    vertical-align:top;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl403624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-number-format:General;
    text-align:general;
    vertical-align:top;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
.xl413624
    {padding-top:1px;
    padding-right:1px;
    padding-left:1px;
    mso-ignore:padding;
    color:windowtext;
    font-size:12.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:"MS P明朝", serif;
    mso-font-charset:128;
    mso-number-format:General;
    text-align:general;
    vertical-align:bottom;
    border:.5pt solid windowtext;
    background:white;
    mso-pattern:auto none;
    white-space:nowrap;}
ruby
    {ruby-align:left;}
rt
    {color:windowtext;
    font-size:9.0pt;
    font-weight:400;
    font-style:normal;
    text-decoration:none;
    font-family:宋体;
    mso-generic-font-family:auto;
    mso-font-charset:134;
    mso-char-type:none;}
.STYLE3 {color: windowtext; font-size: 14.0pt; font-weight: 700; font-style: normal; text-decoration: none; font-family: "Courier New", Courier, monospace; mso-font-charset: 0; }
-->

作者: lazygc520   发布时间: 2011-06-27

你的布局只能以牛B来形容
去掉最后行tr里面的td里的两个rowspan属性就可以了  
  <table x:str border="0" cellpadding="0" cellspacing="0" width="1108" style='border-collapse: collapse;
  table-layout: fixed; width: 832pt; border: 1;'>
  <col width="57" style='mso-width-source: userset; mso-width-alt: 1824; width: 43pt'>
  <col width="72" span="6" style='mso-width-source: userset; mso-width-alt: 2304; width: 54pt'>
  <col width="65" style='mso-width-source: userset; mso-width-alt: 2080; width: 49pt'>
  <col width="57" style='mso-width-source: userset; mso-width-alt: 1824; width: 43pt'>
  <col width="72" span="6" style='mso-width-source: userset; mso-width-alt: 2304; width: 54pt'>
  <col width="65" style='mso-width-source: userset; mso-width-alt: 2080; width: 49pt'>
  <tr height="25" style='height: 18.75pt'>
  <td colspan="5" height="25" class="xl233624" style='height: 18.75pt'>
  XXXX
  </td>
  <td colspan="3" class="xl253624" style='border-left: none' align="center">
  <font class="font73624">SNP</font>
  </td>
  </tr>
  <tr height="37" style='height: 27.75pt'>
  <td colspan="5" rowspan="2" height="82" class="xl273624" style='height: 61.5pt'>
  <img src="test.php?codebar=BCGcode39extended&text=MEC600-010">
  </td>
  <td colspan="3" class="xl283624" style='border-left: none'>
  15
  </td>
  </tr>
  <tr height="45" style='height: 33.75pt'>
  <td colspan="3" height="45" class="xl313624" style='height: 33.75pt; border-top: none;
  border-left: none'>
  SNP条形码
  </td>
  </tr>
  <tr height="35" style='height: 33.75pt'>
  <td colspan="6" rowspan="4" height="141" class="xl323624" style='height: 105.75pt'>
  <img src="test.php?codebar=BCGcode39extended&text=237101PW0A">
  </td>
  <td colspan="2" class="xl313624" style='height: 18.75pt; border-top: none; border-left: none'>
  检查印
  </td>
  </tr>
  <tr height="45" style='height: 33.75pt'>
  <td width="346" height="45" class="xl303624" style='height: 33.75pt; border-top: none;
  border-left: none'>
  </td>
  <td width="403" class="xl223624" style='border-top: none; border-left: none'>
  </td>
  </tr>
  <tr height="25" style='height: 18.75pt'>
  <td colspan="2" height="30" class="xl333624" style='height: 18.75pt; border-left: none'>
  Lot No
  </td>
  </tr>
  <tr height="26" style='height: 19.5pt'>
  <td colspan="2" align="center" height="26" class="xl343624" style='height: 19.5pt;
  border-left: none'>
  00215*5<br />
  00258*5<br />
  00215*5
  </td>
  </tr>
  <tr height="19" style='height: 14.25pt'>
  <td height="38" class="xl363624" width="61" style='height: 28.5pt; border-top: none;
  width: 43pt'>
  SSM<br>
  <font class="font83624">B100</font>
  </td>
  <td colspan="7" class="xl373624">
  ABC CORP
  </td>
  </tr>
  </table>

作者: aspwebchh   发布时间: 2011-06-27

额,我这是用软件转过来的。firefox的问题是解决了,但是ie的显示照旧。

作者: lazygc520   发布时间: 2011-06-27

热门下载

更多