• CSS实现多个Div等高,类似表格布局


    <%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
    <%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
    <%@ page contentType="text/html; charset=UTF-8"%>
    <%@ page import="java.net.URLEncoder;" %>
    
    <style>
    table.tableClass td{padding:8px;}
    .bgClass{background-color:#EEE;}
    </style>
    
    <s:hidden name="value.key" />
    <center class="bgClass">
    <table class="tableClass">
        <tr>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td><label>组织机构代码</label></td>
            <td>
                <s:textfield name="value.organCode" size="50" cssClass="form-control"/>
            </td>
        </tr>
        <tr>
            <td><label>法人名称</label></td>
            <td>
                <s:textfield name="value.corpName" size="50" cssClass="form-control"/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td><button type="button" class="btn btn-primary btn-sm" onclick="formSubmit()">保 存</button></td>
        </tr>
    </table>
    </center>
    
    <center class="bgClass">
        <div class="equal">
            <div class="row">
                <div class="one"><label>组织机构代码</label></div>
                <div class="two"><s:textfield name="value.organCode" size="50" cssClass="form-control"/></div>
            </div>
    
            <div class="row">
                <div class="one"><label>法人名称</label></div>
                <div class="two"><s:textfield name="value.corpName" size="50" cssClass="form-control"/></div>
            </div>
            <div class="row">
                <div class="one"></div>
                <div class="four"><button type="button" class="btn btn-primary btn-sm" onclick="formSubmit()">保 存</button></div>
            </div>
        </div>
    </center>
    <style>
    .equal{display:table;border-collapse:separate;}
    .row {display:table-row;}
    .row div {display:table-cell;padding:8px;}
    .row .one {vertical-align:middle;}
    .row .two {}
    .row .three {}
    .row .four {float:left;}
    </style>
  • 相关阅读:
    Kostya Keygen#2分析
    一个简单的windows勒索软件分析
    MSRHook与SSDTHook
    VS2013中调驱动
    VMProtect1.63分析
    Linux内核分析总结
    进程的切换和系统的一般执行过程
    可执行程序的装载
    进程的描述和进程的创建
    扒开系统调用的三层皮(下)
  • 原文地址:https://www.cnblogs.com/geniussoft/p/4875324.html
Copyright © 2020-2023  润新知