zoukankan      html  css  js  c++  java
  • css ul li checkbox 格式

    <td class="tddata">
                            <% if (aq == 1) { model.NoticeType = 1; } %>
                            <%--<select id="txtClassId" name="txtClassId" onchange="seleTypeImg()">
                                <% foreach (HX.Model.ADM.T_ADM_DataType data in list)
                                    {%>
                                <option value="<%=data.TypeCode %>" <%=data.TypeCode==model.NoticeType?"selected":"" %>>
                                    <%=data.TypeName%></option>
                                <%} %>
                            </select>--%>
                            <ul class="noticeType">
                             <% foreach (var item in list)
                                {
                                    string chk = "";
                                    if(model!=null && model.NoticeTypeList != null) { 
                                    chk=model.NoticeTypeList.Where(t => t.Key == item.TypeCode).ToList().Count > 0 ? chk = "checked='checked'" : "";}
                            %>
                            <li><input type="checkbox" name="cheType" value="<%=item.TypeCode %>" <%=chk %> data-name="<%=item.TypeName %>" /><%=item.TypeName %></li>
                            <%
                                } %>
                                </ul>
                        </td>
    View Code
     <style type="text/css">
            .tddata input{margin-right:0px;vertical-align:sub;width:auto;}
            .noticeType li{float:left;line-height:30px;width:120px;list-style:none;}
            .noticeType{padding-left:0px;}
        </style>
    View Code
    收藏
    关注
    评论
  • 相关阅读:
    智能手机
    Micro LED
    paper-10-IRM-in-MANETs
    INFOCOM
    如何基于 Android Things 构建一个智能家居系统?
    (OK) VNCserver
    CCF 2016-04-2 俄罗斯方块
    CCF 2016-04-1 折点计数
    洛谷 P1927 防护伞
    洛谷 P1843 奶牛晒衣服
  • 原文地址:https://www.cnblogs.com/yidengbone/p/7659561.html
Copyright © 2011-2022 走看看