.NET 表格对角线怎么实现?在线等!

解决方案 »

  1.   

    table没有这个属性.可用背景图片在实现.
      

  2.   

    和.net 没有关系,你在需要出现对角线的单元个内放一个被景大小都和你格子匹配的图片,图片上画个斜线
      

  3.   

    我给个例,它实现了画圆,你自己再想想吧  我也不会
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:w="urn:schemas-microsoft-com:office:word"
    xmlns="http://www.w3.org/TR/REC-html40"><head>
    <meta http-equiv=Content-Type content="text/html; charset=GB2312">
    <link rel=Original-File href="文档%201">
    <meta name=ProgId content=Word.Document>
    <meta name=Generator content="Microsoft Word 9">
    <meta name=Originator content="Microsoft Word 9">
    <link rel=File-List href="./文档%201.files/filelist.xml">
    <link rel=Edit-Time-Data href="./文档%201.files/editdata.mso">
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
     <o:DocumentProperties>
      <o:Author>ICEKIKY</o:Author>
      <o:Revision>1</o:Revision>
      <o:TotalTime>0</o:TotalTime>
      <o:Created>2002-04-04T01:34:00Z</o:Created>
      <o:pages>1</o:pages>
      <o:Characters>1</o:Characters>
      <o:Company>MYCRM</o:Company>
      <o:Lines>1</o:Lines>
      <o:paragraphs>1</o:paragraphs>
      <o:CharactersWithSpaces>1</o:CharactersWithSpaces>
      <o:Version>9.2812</o:Version>
     </o:DocumentProperties>
    </xml><![endif]--><!--[if gte mso 9]><xml>
     <w:WordDocument>
      <w:View>Normal</w:View>
      <w:Zoom>0</w:Zoom>
      <w:punctuationKerning/>
      <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
      <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
      <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
      <w:Compatibility>
       <w:SpaceForUL/>
       <w:BalanceSingleByteDoubleByteWidth/>
       <w:DoNotLeaveBackslashAlone/>
       <w:ULTrailSpace/>
       <w:DoNotExpandShiftReturn/>
       <w:AdjustLineHeightInTable/>
       <w:UseFELayout/>
      </w:Compatibility>
      <w:DoNotOptimizeForBrowser/>
     </w:WordDocument>
    </xml><![endif]-->
    <style>
    <!--
     /* Font Definitions */
    @font-face
    {font-family:宋体;
    panose-1:2 1 6 0 3 1 1 1 1 1;
    mso-font-alt:SimSun;
    mso-font-charset:134;
    mso-generic-font-family:auto;
    mso-font-pitch:variable;
    mso-font-signature:3 135135232 16 0 262145 0;}
    @font-face
    {font-family:"\@宋体";
    panose-1:2 1 6 0 3 1 1 1 1 1;
    mso-font-charset:134;
    mso-generic-font-family:auto;
    mso-font-pitch:variable;
    mso-font-signature:3 135135232 16 0 262145 0;}
     /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {mso-style-parent:"";
    margin:0cm;
    margin-bottom:.0001pt;
    text-align:justify;
    text-justify:inter-ideograph;
    mso-pagination:none;
    font-size:10.5pt;
    mso-bidi-font-size:12.0pt;
    font-family:"Times New Roman";
    mso-fareast-font-family:宋体;
    mso-font-kerning:1.0pt;}
     /* Page Definitions */
    @page
    {mso-page-border-surround-header:no;
    mso-page-border-surround-footer:no;}
    @page Section1
    {size:595.3pt 841.9pt;
    margin:72.0pt 90.0pt 72.0pt 90.0pt;
    mso-header-margin:42.55pt;
    mso-footer-margin:49.6pt;
    mso-paper-source:0;
    layout-grid:15.6pt;}
    div.Section1
    {page:Section1;}
    -->
    </style>
    <!--[if gte mso 9]><xml>
     <o:shapedefaults v:ext="edit" spidmax="2050"/>
    </xml><![endif]--><!--[if gte mso 9]><xml>
     <o:shapelayout v:ext="edit">
      <o:idmap v:ext="edit" data="1"/>
     </o:shapelayout></xml><![endif]-->
    </head><body lang=ZH-CN style='tab-interval:21.0pt;text-justify-trim:punctuation'><div class=Section1 style='layout-grid:15.6pt'><p class=MsoNormal><!--[if gte vml 1]><v:oval id="_x0000_s1026" style='position:absolute;
     left:0;text-align:left;margin-left:27pt;margin-top:132.6pt;width:333pt;
     height:187.2pt;z-index:1'/><![endif]--><![if !vml]><span style='mso-ignore:
    vglayout'><table cellpadding=0 cellspacing=0 align=left>
     <tr>
      <td width=36 height=177></td>
     </tr>
     <tr>
      <td></td>
      <td><img width=445 height=250 src="./文档%201.files/image001.gif" v:shapes="_x0000_s1026"></td>
     </tr>
    </table></span><![endif]><span lang=EN-US><![if !supportEmptyParas]>&nbsp;<![endif]><o:p></o:p></span></p></div></body></html>