html 레이아웃: html 3열 레이아웃 구현 코드

不言
풀어 주다: 2018-08-07 11:38:15
원래의
4411명이 탐색했습니다.

이 기사의 내용은 html 레이아웃에 관한 것입니다. html 3열 레이아웃의 구현 코드에는 특정 참조 값이 있습니다. 도움이 필요한 친구가 참고할 수 있기를 바랍니다.

주요 목적은 페이지에 대략 3개의 열을 달성하기 위한 완전한 레이아웃 스타일을 기록하는 것입니다. 이 중 왼쪽 및 오른쪽 열은 적응형 너비이고 가운데는 고정 너비입니다.

CSS 스타일 코드:

/********************
*公共标签样式
********************//*********************
*main 外边框自适应区域
***********************/.main {
    width: 100%;
    min-width: 1100px;
    padding-bottom: 30px;
    box-sizing: border-box;
    background-color: #FFF;
    border-radius: 6px;
    box-shadow: 0px 4px 6px 0px rgba(70, 95, 106,.25);
}/*title 标题 */.main-title {
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: #263135;
    background-color: #d1d6da;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}/*********************
*头部文号区:70px
***********************/.content_title {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    height: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    line-height: 30px;
}/**********************
*区域块设置
**********************/.area {
    height:500px;
}.area_left {
    float: left;
    width: calc(50% - 75px);
    height: 100%;
    background-color: bisque;
}.area_center {
    float: left;
    width: 150px;
    height: 100%;
    background-color: black;
}.area_right {
    float: left;
    width: calc(50% - 75px);
    height: 100%;
    background-color: bisque;
}/**************************
*footer底部区域 
***************************/.footer {
    margin: 40px 0;
}/*  提交 */.submit {
    height: 40px;
}/* 提交按钮*/.submit-btn {
    height: 40px;
    width: 200px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 40px;
    font-size: 1.1em;
    background-color: #1bbc9b;
    cursor: pointer;
}/********************
*公共标签默认属性设置
********************/body {
    margin: 0;
    font-size: 15px;
    padding: 20px 20px 0 20px;
    margin-bottom: 0 !important;
    background-color: #f0f0f0;
}input {
    border: none;
}
로그인 후 복사

html 코드 레이아웃:

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="x-ua-compatible" content="IE=9" />
    <title>三列布局</title>
    <!--页面样式-->
    <link href="~/Content/css/StyleTemplate/Index.css" rel="stylesheet" />

    <!--当前页面的逻辑  -->
</head>
<body>
    <!-- 主要区域 -->
    <div class="main">
        <!-- 主要区域 标题 -->
        <div class="main-title">
 
        </div>
        <div class="content">
            <div class="content_title">
                <div class="flLeft padigLeft_15">
                    <span class="fontBold">名称/文号:</span>
                    <input class="int" value="发文文号001" />
                </div>              
            </div>
            <div class="area">
                <div class="area_left">左边</div>
                <div class="area_center">中间</div>
                <div class="area_right">右边</div>
            </div>
        </div>
    </div>

    <!--footer  底部区域   -->
    <div class="footer">
        <div class="submit">
            <!--  提交 按钮 -->
            <a class="submit-btn" onclick="window.print()">
                流程转交
            </a>
        </div>
    </div>
</body>
</html>
로그인 후 복사

최종 효과 표시:

추천 관련 기사:

div 태그: 가로 센터링 및 세로 센터링 구현(코드 포함)

반응형 레이아웃이란 무엇입니까? HTML 반응형 레이아웃 구현

일반적인 유형의 HTML 레이아웃은 무엇인가요? html

의 세 가지 레이아웃 특성 분석

위 내용은 html 레이아웃: html 3열 레이아웃 구현 코드의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!