日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

html 三列布局(两列自适应,一列固定宽度)

發布時間:2023/12/2 编程问答 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html 三列布局(两列自适应,一列固定宽度) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

不做過多解釋:主要是記錄一個完整的布局樣式,實現頁面大致三列其中左右兩列是自適應寬度,中間固定寬度效果。

不多少代碼奉上:

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>

最終效果展示:

?

本文轉載于:猿2048?https://www.mk2048.com/blog/blog.php?id=i0c0k0j&title=html 三列布局(兩列自適應,一列固定寬度)

總結

以上是生活随笔為你收集整理的html 三列布局(两列自适应,一列固定宽度)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。