關於flex佈局對自己的影響

来源:http://www.cnblogs.com/yuyuhang/archive/2017/12/05/7988428.html
-Advertisement-
Play Games

對於本圖來說用了一個效果就能達到這種情況,對於我來說,今天是有進步的,具體操作就是盒子模型確實,在什麼地方起來的flex就運用到該地方去,剛 開始就一直有問題,思考了半天,原來是我的控制代碼出現了點錯誤,就是不將對應的控制放到了想盒子裡面,而放在子元素下麵,果然不會的地方是在於 多多嘗試,嘗試多了, ...


對於本圖來說用了一個效果就能達到這種情況,對於我來說,今天是有進步的,具體操作就是盒子模型確實,在什麼地方起來的flex就運用到該地方去,剛

開始就一直有問題,思考了半天,原來是我的控制代碼出現了點錯誤,就是不將對應的控制放到了想盒子裡面,而放在子元素下麵,果然不會的地方是在於

多多嘗試,嘗試多了,自然就知道為什麼會這樣了,感謝今天的自己,這麼努力,很簡單的靜態頁面我也很認證的完成了,為的就是提高自己的擼碼能力,

哈哈哈,代碼如下!

 

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="yes" name="apple-touch-fullscreen">
<meta content="telephone=no,email=no" name="format-detection">
<meta name="wap-font-scale" content="no">
<script src="js/flexible.js"></script>
<title>登錄</title>
<link rel="stylesheet" type="text/css" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/index.css">
</head>
<body>
<div class="login">
<div class="login-header">
<ul class="list3">
<li class="facing-left">
<div class="facing-left1"></div>
</li>
<li class="facing-center">
<h2>登錄</h2>
</li>
<li class="facing-right">
<span>註冊</span>
</li>
</ul>
</div>
<div class="login-content">
<div class="content-head"><span>打賞登錄帳號</span></div>
<div class="content-t">
<input type="text" placeholder="郵箱手機">
<input type="text" placeholder="密碼">
</div>
<div class="content-footer"><span>忘記密碼?</span></div>
<div class="footer-content"><p>點擊登錄,即表示已閱讀並同意<span>《用戶許可協議》</span></p></div>
</div>
<div class="login-footer">
<div class="footer-head">
<p>使用第三方賬戶登錄</p>
</div>
<div>
<ul class="list4">
<li><img src="img/icon_11.png" alt=""></li>
<li><img src="img/icon_12.png" alt=""></li>
<li><img src="img/icon_13.png" alt=""></li>
</ul>
</div>
</div>
</div>

</body>
</html>

 

 

.login-header{
width:100%;
height: 1.3438rem;
}

.login-header .list3{
width: 100%;
display:flex;
justify-content:space-between;
}

.login-header .list3 .facing-center{
margin-top:0.3438rem;
}

.login-header .list3 .facing-right{
margin:0.4438rem 0.4688rem 0 0;
color:#404040;
}

.login-header .list3 .facing-left1{
display: inline-block;
justify-content:flex-start;
margin:0.5062rem 0 0 0.4688rem;
border-left: 0.0469rem solid; border-bottom: 0.0469rem solid;
width: 0.3281rem; height:0.3281rem;
transform: rotate(45deg);
}

.login-content{
width: 100%;
}

.login-content .content-head{
text-align:center;
margin-top:0.625rem;
}

.login-content .content-head span{
font-size:0.4375rem;
color: #808080;

}

.content-t{
margin-top: 0.9375rem;
}

.content-t input{
height: 1.2188rem;
margin-left:0.3125rem;
display:block;
padding-left:0.3125rem;
outline:none;
width:90%;
background: #f8f9f9;
}


.content-t input:hover {
background: #ebeced;
border-radius:0.3125rem;
}

.content-t input:nth-child(2){
margin-top:0.2344rem;
}

.content-footer{
margin:0.1562rem 0 0 0.3125rem;
}

.content-footer span{
font-size:0.3238rem;
color:#404040;
}

.footer-content{
text-align: center;
margin-top:3.1875rem;
}

.footer-content p{
font-size:0.3438rem;
color:#888888;
}

.footer-content p span{
color:red;
}

.login-footer .footer-head p{
text-align:center;
margin-top:3.1875rem;
font-size:0.3438rem;
color:#888888;
}

.login-footer .list4{
margin-top: 1.0rem;
display:flex;
justify-content:space-around
}

.login-footer .list4 li{
width:1.5rem;

}

.login-footer .list4 li img{
max-width: 100%;
}


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • [What's New in iOS 9.x](https://developer.apple.com/library/content/releasenotes/General/WhatsNewIniOS/Articles/iOS9.html#//apple_ref/doc/uid/TP400161 ...
  • [1]文字隱藏 [2]負縮進 [3]負margin [4]上padding [5]0寬高 [6]文本透明 [7]偽元素 [8]正縮進 [9]字體大小 ...
  • 其實這個問題在你使用vue cli構建項目的時候是不會出現的,因為你在創建項目的構建過程中已經讓你勾選了,然後會寫入 中。 這就在這,會讓你選擇Vue的構建方式。 如果你勾選 就會出現如上的配置。 其實這裡涉及到一個概念: 獨立構建:含義是,擁有完整的 和`運行時調用功能` 運行時構建:含義是,只擁 ...
  • // 提取特殊字元串長度(scrstr 源字元串 armstr 特殊字元) getStrCount: function(scrstr, armstr) { var count = 0; while (scrstr.indexOf(armstr) >= 1) { scrstr = scrstr.rep... ...
  • 摘要:之前在做一個小游戲平臺項目,有個“用戶中心”模塊,就涉及到了頭像上傳的功能。在做移動端圖片上傳的時候,傳的都是手機本地圖片,而本地圖片一般都相對比較大,拿現在的智能手機來說,平時拍很多圖片都是兩三兆的,如果直接這樣上傳,那圖片就太大了,如果用戶用的是移動流量,完全把圖片上傳顯然不是一個好辦法。 ...
  • //兩數組去除重覆數值 mergeArray: function(arr1, arr2) { for (var i = 0; i < arr1.length; i++) { for (var j = 0; j < arr2.length; j++) { if (arr1[i] === arr2[j]... ...
  • 1.首先安裝node.js環境 官網地址https://nodejs.org/en/ 文本編輯器選擇 sublime text3 (vs就算了太大) 2.建立項目 2.1 新建自己的項目文件夾 code-x 代號x計劃,放到桌面 2.2 初始化 一路回車 3 安裝vue模板,編譯運行 4 瞭解項目結 ...
  • 寫在前面: 最近公司在做微信公眾號的開發,我的任務是在微信服務號中嵌套第三方頁面,也就是公司自己負責的頁面,技術我選的是vue,應為在之前的開發經歷中並沒有使用過vue,這也是一次新的嘗試,當然在開發過程中會遇到一系列之前沒有遇到的問題,不過這不是重點,只要有解決問題的那一刻就非常心滿意足了。 因為 ...
一周排行
    -Advertisement-
    Play Games
  • 示例項目結構 在 Visual Studio 中創建一個 WinForms 應用程式後,項目結構如下所示: MyWinFormsApp/ │ ├───Properties/ │ └───Settings.settings │ ├───bin/ │ ├───Debug/ │ └───Release/ ...
  • [STAThread] 特性用於需要與 COM 組件交互的應用程式,尤其是依賴單線程模型(如 Windows Forms 應用程式)的組件。在 STA 模式下,線程擁有自己的消息迴圈,這對於處理用戶界面和某些 COM 組件是必要的。 [STAThread] static void Main(stri ...
  • 在WinForm中使用全局異常捕獲處理 在WinForm應用程式中,全局異常捕獲是確保程式穩定性的關鍵。通過在Program類的Main方法中設置全局異常處理,可以有效地捕獲並處理未預見的異常,從而避免程式崩潰。 註冊全局異常事件 [STAThread] static void Main() { / ...
  • 前言 給大家推薦一款開源的 Winform 控制項庫,可以幫助我們開發更加美觀、漂亮的 WinForm 界面。 項目介紹 SunnyUI.NET 是一個基於 .NET Framework 4.0+、.NET 6、.NET 7 和 .NET 8 的 WinForm 開源控制項庫,同時也提供了工具類庫、擴展 ...
  • 說明 該文章是屬於OverallAuth2.0系列文章,每周更新一篇該系列文章(從0到1完成系統開發)。 該系統文章,我會儘量說的非常詳細,做到不管新手、老手都能看懂。 說明:OverallAuth2.0 是一個簡單、易懂、功能強大的許可權+可視化流程管理系統。 有興趣的朋友,請關註我吧(*^▽^*) ...
  • 一、下載安裝 1.下載git 必須先下載並安裝git,再TortoiseGit下載安裝 git安裝參考教程:https://blog.csdn.net/mukes/article/details/115693833 2.TortoiseGit下載與安裝 TortoiseGit,Git客戶端,32/6 ...
  • 前言 在項目開發過程中,理解數據結構和演算法如同掌握蓋房子的秘訣。演算法不僅能幫助我們編寫高效、優質的代碼,還能解決項目中遇到的各種難題。 給大家推薦一個支持C#的開源免費、新手友好的數據結構與演算法入門教程:Hello演算法。 項目介紹 《Hello Algo》是一本開源免費、新手友好的數據結構與演算法入門 ...
  • 1.生成單個Proto.bat內容 @rem Copyright 2016, Google Inc. @rem All rights reserved. @rem @rem Redistribution and use in source and binary forms, with or with ...
  • 一:背景 1. 講故事 前段時間有位朋友找到我,說他的窗體程式在客戶這邊出現了卡死,讓我幫忙看下怎麼回事?dump也生成了,既然有dump了那就上 windbg 分析吧。 二:WinDbg 分析 1. 為什麼會卡死 窗體程式的卡死,入口門檻很低,後續往下分析就不一定了,不管怎麼說先用 !clrsta ...
  • 前言 人工智慧時代,人臉識別技術已成為安全驗證、身份識別和用戶交互的關鍵工具。 給大家推薦一款.NET 開源提供了強大的人臉識別 API,工具不僅易於集成,還具備高效處理能力。 本文將介紹一款如何利用這些API,為我們的項目添加智能識別的亮點。 項目介紹 GitHub 上擁有 1.2k 星標的 C# ...