zoukankan      html  css  js  c++  java
  • 杂记2

    1  可编辑的下拉框

    <td class="style15" style="height: 25px;">
                                                    <div style="position: absolute; float: left; z-index: 0;">
                                                        <div style="margin-left: 159px; width: 18px;overflow: hidden;">
                                                            <select id="ddlTaskCategory" runat="server"style="width: 177px; margin-left: -159px;"
                                                               onchange="this.parentNode.nextSibling.value=this.options[this.selectedIndex].value;this.parentNode.nextSibling.focus();">
                                                            </select>
                                                        </div>
                                                        <input type="text" id="txtTaskCategory"style="width: 153px; margin-top: -37px; left: 0px;
                                                            border-right-style: none;" maxlength="300"/>
                                                    </div>
                                                </td>
     
    2
    protected override void Render(HtmlTextWriter writer)
            {
                HtmlTextWriter gridWriter = new HtmlTextWriter(new System.IO.StringWriter());
                gvResult.RenderControl(gridWriter);
                HtmlTextWriter gridWriter2 = new HtmlTextWriter(new System.IO.StringWriter());
                msgTable.RenderControl(gridWriter2);
                Response.Write(gridWriter.InnerWriter.ToString() + gridWriter2.InnerWriter.ToString());
            }
     
            public override void VerifyRenderingInServerForm(System.Web.UI.Control control)
            {
     
            }
    3
    var selectedTable = $("#ddlTables").find("option:selected").text();
    4

    获得checkbox 勾选的个数
    var len1 = $("input[name=question01]:checked").size();

    5 注释
    <p>About<acronym title="注释"> Remarks</acronym> is a line</p>
    acronym[title]{ border-bottom: 1px dotted #999;}
    acronym[title]:hover, acronym[title]:focus{ cursor:help}

    6 相邻同胞选择器 h2 + p{ background-color: Gray }
    <h2>
    Test
    </h2>
    <p>
    About</p>
    <p>
    Amity</p>
    <div>

     
     
     
  • 相关阅读:
    「manacher」
    「回文自动机」
    「可持久化数据结构(平衡树、trie树、线段树) 」
    「后缀数组」
    「LCT」
    「网络流」
    「一些知识点」
    「至今不会」
    「推荐博客」
    「最小生成树」
  • 原文地址:https://www.cnblogs.com/Amity/p/3061162.html
Copyright © 2011-2022 走看看