zoukankan      html  css  js  c++  java
  • 内容漂浮在图片上(div漂浮)

    <style type="text/css">
    <!--
     .d1 {
                position:absolute;
                top:40px;
                left:0px;
                500px;
                height:278px;
            }
        .d2 {
                position:absolute;
                500px;
                height:317px;
            }
        .d3 {
            position:relative;
            500px;
            height:317px;
            float:left;
        }
    -->
    </style>

    <asp:DataList ID="dtMain" runat="server" RepeatColumns="2" RepeatDirection="Horizontal">
                <ItemTemplate>
                    <div class='d3'>
                    <div class='d2'><%= strImg %></div>
                    <div class='d1'>
                    <table class='TableData'  width='100%'>
                    <tr>
                    <td height="210" style="text-align:center; vertical-align:middle; border:0 0 0 0; line-height:normal;" colspan="4"><span style="font-size:120px;"><font face="黑体"><strong><%#(DataBinder.Eval(Container, "DataItem.PetName")) %><strong></font></span></td>
                    </tr>
                    <tr>
                    <td width='20%' style='text-align:center; border:0 0 0 0;line-height:normal;' ><font face='黑体' size='6'><strong><%#(DataBinder.Eval(Container, "DataItem.IsShowClass"))%></strong></font></td>
                    <td width='25%' style='text-align:center; border:0 0 0 0; line-height:normal;'><font face='黑体' size='6'><strong><%#(DataBinder.Eval(Container, "DataItem.ClassNum"))%></strong></font></td>
                    <td width='23%' style='text-align:center; border:0 0 0 0; line-height:normal;'><font face='黑体' size='6'><strong><%#(DataBinder.Eval(Container, "DataItem.Category"))%></strong></font></td><td style='text-align:center; border:0 0 0 0; line-height:normal;'><font face='黑体' size='6'><strong><%#(DataBinder.Eval(Container, "DataItem.Name")) %></strong></font></td>
                    </tr>
                    </table>
                    </div>
                    </div>
                </ItemTemplate>
            </asp:DataList>

  • 相关阅读:
    Linux磁盘分区实例演示
    浅谈Linux下的rpm
    You have 1 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): shopadmin. Run 'python manage.py migrate' to apply them.
    Xshell Linux常用命令
    OSError: mysql_config not found
    AttributeError: module 'datetime' has no attribute 'now'
    CentOS查看进程端口号以及kill操作
    nginx报错 nginx: [alert] kill(25903, 1) failed (3: No such process)
    3D 散点图的绘制
    关系数据库和非关系型数据
  • 原文地址:https://www.cnblogs.com/gaoshuai/p/2837261.html
Copyright © 2011-2022 走看看