css網格_我如何記住CSS網格屬性

css網格

The syntax for CSS Grid is foreign and hard to remember. But if you can’t remember CSS Grid’s syntax, you won’t be confident when you use CSS Grid.

CSS Grid的語法是外來的,很難記住。 但是,如果您不記得CSS Grid的語法,那么使用CSS Grid時就不會充滿信心。

To wield CSS Grid effectively, you need to remember its properties and values.

為了有效地使用CSS Grid,您需要記住其屬性和值。

I want to share how I remember the most common CSS Grid properties today. This will help you use CSS Grid without googling like a maniac.

我想分享我如何記住當今最常見CSS Grid屬性。 這將幫助您使用CSS Grid,而不會像瘋子一樣進行谷歌搜索。

屬性組 (Groups of properties)

I remember CSS Grid according to four groups of properties:

我記得CSS Grid根據四組屬性:

  1. The explicit grid

    顯式網格
  2. Gaps

    縫隙
  3. Aligning things

    對齊事物
  4. The implicit grid

    隱式網格

顯式網格 (The explicit grid)

Let’s say you want to make a grid with 4 columns and 3 rows. You say this 4 columns and 3 rows out loud. It’s explicit.

假設您要制作一個4列3行的網格。 您說這4列和3行很大聲。 很明顯

If you declare the number of rows and columns in your grid, the grid is explicit.

如果聲明網格中的行數和列數,則網格是顯式的。

You can use two properties to make an explicit grid:

您可以使用兩個屬性來創建顯式網格:

  1. grid-template-columns

    grid-template-columns

  2. grid-template-rows

    grid-template-rows

grid-template-columns lets you define the number of columns. grid-template-rows lets you define the number of rows.

grid-template-columns可讓您定義列數。 grid-template-rows使您可以定義行數。

.grid {  display: grid;   grid-template-columns: 1fr 1fr 1fr 1fr;   grid-template-rows: 3em 3em 3em;}

This creates a grid with four columns and three rows.

這將創建一個具有四列三行的網格。

See the Pen XPyGZp by Zell Liew (@zellwk) on CodePen.

請參閱CodePen上的Zell Liew( @zellwk )的Pen XPyGZp 。

How do you know there are four columns and three rows?

您怎么知道有四列三行?

grid-template-columns create a new column for each length value you add to it. In the grid-template-columns declaration above, we have four 1fr values. This means four columns.

grid-template-columns為您添加到其中的每個長度值創建一個新列。 在上面的grid-template-columns聲明中,我們有四個1fr值。 這意味著四列。

grid-template-rows work the same way. The grid above has three 3em values, which means it has 3 rows.

grid-template-rows以相同的方式工作。 上面的網格具有三個3em值,這意味著它具有3行。

grid-template-columns and grid-template-rows can also take in values like repeat, autofill, autofit, minmax. We won’t go into these values in this article.

grid-template-columnsgrid-template-rows也可以采用repeatautofillautofitminmax 。 在本文中,我們將不討論這些值。

What you need to know now is you can create an explicit grid with two properties:

您現在需要知道的是可以創建具有兩個屬性的顯式網格:

  1. grid-template-columns: creates columns

    grid-template-columns :創建列

  2. grid-template-rows: creates rows

    grid-template-rows :創建行

在網格中定位項目 (Positioning items in your grid)

You can control the position of items in a grid with two properties.

您可以使用兩個屬性控制項目在網格中的位置。

These two properties can only be used on a grid item.

這兩個屬性只能在網格項目上使用。

grid-column lets you choose which column(s) you want to place your grid item. It is a shorthand for grid-column-start and grid-column-end.

grid-column可讓您選擇要放置網格項的列。 它是grid-column-startgrid-column-end的簡寫。

It works this way: grid-column-start / grid-columns-end.

它是這樣工作的: grid-column-start / grid-columns-end

/* Using the longhand */.grid-item {  grid-column-start: 1;   grid-column-end: 3;}
/* Using the shorthand */.grid-item {  grid-column: 1 / 3;}

Note: You can also use the span keyword to tell CSS Grid how many columns you want your item to take up.

注意:您也可以使用span關鍵字告訴CSS Grid您希望項目占用多少列。

/* Using the longhand */.grid-item {  grid-column-start: 1; /* Start at column one */  grid-column-end: span 2; /* Width is two columns */}

See the Pen Explicit Grid properties by Zell Liew (@zellwk) on CodePen.

見鋼筆明確網格屬性由澤爾與Liew( @zellwk )上CodePen 。

grid-row lets you choose which row(s) you want to place your grid item. It is a shorthand for grid-row-start and grid-row-end.

grid-row使您可以選擇要放置網格項目的行。 它是grid-row-startgrid-row-end的簡寫。

It works this way: grid-row-start / grid-row-end.

它是這樣工作的: grid-row-start / grid-row-end

/* Using the longhand */.grid-item {  grid-row-start: 1;   grid-row-end: span 2;}
/* Using the shorthand */.grid-item {  grid-row: 1 / span 2;}

See the Pen Positioning items (rows) by Zell Liew (@zellwk) on CodePen.

見筆定位件(行)由澤爾與Liew( @zellwk )上CodePen 。

在命名區域中定位項目 (Positioning items in named areas)

You can name parts of your grid if you don’t like counting rows and columns. These named parts are called grid areas. To create a grid area, you use grid-template-area on the grid.

如果您不喜歡計算行和列,則可以命名網格的各個部分。 這些命名的部分稱為網格區域。 要創建網格區域,請在網格上使用grid-template-area

Some notes on creating grid areas:

有關創建網格區域的一些說明:

  1. You must name every grid area

    您必須命名每個網格區域
  2. If you don’t want to name an area, use .

    如果您不想命名區域,請使用.

  3. Each group separated by inverted commas ("row1" "row2") signifies a row

    每個組用逗號分隔( "row1" "row2" ),表示一行

  4. Each value within inverted commas ("area1 area2") signifies an area

    逗號內的每個值( "area1 area2" )表示一個區域

The example below has three grid areas:

下面的示例包含三個網格區域:

  1. header on the first two and takes up 4 columns

    前兩個header ,占4列

  2. main on the second row and takes up the middle 2 columns

    main在第二行,占據中間的兩列

  3. footer on the third row and takes up 4 columns

    第三行的footer ,占據4列

.grid {  grid-template-areas: "header header header header"                      ".      main   main   .     "                      "footer footer footer footer";}

To place items in a grid area, you use the grid-area property on the grid item.

要將項目放置在網格區域中,請在網格項目上使用grid-area屬性。

To place items on a grid-area, you use grid-area.

要將項目放置在網格區域上,請使用grid-area

.grid {  display: grid;   /* ... */}
main {  grid-area: main}

See the Pen Grid-template-area by Zell Liew (@zellwk) on CodePen.

見筆網格模板面積由澤爾與Liew( @zellwk )上CodePen 。

如何記住這些屬性 (How to remember these properties)

You learned 6 properties so far:

到目前為止,您已經了解了6個屬性:

  1. grid-template-columns

    grid-template-columns

  2. grid-template-rows

    grid-template-rows

  3. grid-template-areas

    grid-template-areas

  4. grid-column

    grid-column

  5. grid-row

    grid-row

  6. grid-area

    grid-area

Some tips to remember these 6 properties:

記住這6個屬性的一些技巧:

  1. The template keyword can only be used on the grid

    template關鍵字只能在網格上使用

    a) They’re used to declare grids and named areas

    a)它們用于聲明網格和命名區域

    b) Properties with the

    b)具有的屬性

    template keyword are plural

    template關鍵字為復數

  2. Properties for grid items do not have the template keyword

    網格項目的屬性沒有template關鍵字

    a) These properties are singular

    a)這些屬性是單數

    b) These properties affect positioning

    b)這些屬性影響定位

縫隙 (Gaps)

When you create a grid, you can create spaces between columns and rows. These spaces are called gaps.

創建網格時,可以在列和行之間創建空格。 這些空間稱為間隙。

There are three properties to remember:

要記住三個屬性:

  1. grid-column-gap

    grid-column-gap

  2. grid-row-gap

    grid-row-gap

  3. grid-gap

    grid-gap

grid-column-gap determines the space between columns.

grid-column-gap確定列之間的間隔。

grid-row-gap determines the space between rows.

grid-row-gap確定行之間的空間。

grid-gap is a shorthand for grid-column-gap and grid-row-gap.

grid-gapgrid-column-gapgrid-row-gap的簡寫。

For this shorthand:

對于此速記:

  1. the column value comes first: column-gap / row-gap

    column值排在第一位: column-gap / row-gap

  2. If you use a single number, both values will be that number.

    如果使用單個數字,則兩個值都將是該數字。
/* Different values */.grid {  grid-column-gap: 1em;  grid-row-gap: 2em;}
.grid {  grid-gap: 1em / 2em; }/* Same values */.grid {  grid-column-gap: 1em;  grid-row-gap: 1em;}
.grid {  grid-gap: 1em;}

See the Pen Explicit Grid with gap by Zell Liew (@zellwk) on CodePen.

見筆與差距顯式網格由澤爾與Liew( @zellwk )上CodePen 。

對齊事物 (Aligning things)

This is where many people get confused.

這是許多人感到困惑的地方。

There are six properties to align things:

有六個屬性可以使事物對齊:

  1. justify-content

    justify-content

  2. align-content

    align-content

  3. justify-items

    justify-items

  4. align-items

    align-items

  5. justify-self

    justify-self

  6. align-self

    align-self

You can see two groups of patterns here:

您可以在此處看到兩組模式:

  • The first group is justify vs align

    第一組是justifyalign

  • The second group is content, items, and self

    第二組是contentitemsself

These two groups of properties tell you what you’re dealing with. If you understand the property keyword, you’ll know how to use them.

這兩組屬性告訴您您要處理的內容。 如果您了解property關鍵字,就會知道如何使用它們。

對齊與對齊 (Justify vs align)

Each CSS Grid has two axes:

每個CSS網格都有兩個軸:

  1. The main-axis

    主軸
  2. The cross-axis

    橫軸

When you justify something, you’re changing the alignment according to the main-axis. When you align something, you’re changing the alignment according to the cross-axis.

當你justify什么,你根據主軸改變對齊。 align某物時,您正在根據橫軸更改對齊方式。

Here’s an easy way to identify the main and cross axis:

這是識別主軸和交叉軸的簡單方法:

  1. Identify the direction of the language

    確定語言的方向
  2. Main-axis is the way you read the language

    主軸是您閱讀語言的方式
  3. Cross-axis is the way you read after you read the end of the first line.

    橫軸是您閱讀第一行結尾后的閱讀方式。

Let’s take English as an example. How do you read English?

讓我們以英語為例。 您如何閱讀英語?

  1. Left to right

    左到右
  2. Top to bottom

    從上到下

So the main and cross axis is:

因此主軸和交叉軸為:

  1. Main: left to right

    主:從左到右
  2. Cross: top to bottom

    十字:從上到下

Note: the main and cross axes change if you change the language direction with writing-mode.

注意:如果您使用writing-mode更改語言方向,則主軸和十字軸也會改變。

內容,項目和自我 (Content, items, and self)

justify-content and align-content lets you align the grid itself to the available space outside of the grid. You will only need these properties if your grid is smaller than its defined area (which is rare).

justify-contentalign-content允許您將網格本身與網格外部的可用空間對齊。 僅當網格小于其定義的區域(很少見)時,才需要這些屬性。

.grid {  justify-content: /* some value */;   align-content: /* some value */; }

You can pick from seven values:

您可以從七個值中進行選擇:

  1. start: flush grid to the start of the axis

    start :將網格刷新到軸的起點

  2. end: flushed grid to the end of the axis

    end :沖洗網格到軸的末端

  3. center: align grid to the center of the axis

    center :將網格與軸中心對齊

  4. stretch: grid fills the axis (this is the default value)

    Stretch :網格填充軸(這是默認值)

  5. space-between: spreads whitespace between grid items. No whitespace at the ends

    space-between :在網格項目之間擴展空格。 末尾沒有空格

  6. space-around: spreads whitespace around each grid item

    空格 :在每個網格項周圍分布空白

  7. space-evenly: spreads whitespace evenly around all grid items including the ends

    均勻空間 :在所有網格項目(包括末端)周圍均勻地分布空白

The pictures above are taken from CSS Tricks’s A complete Guide to Grid. It explains what each value does in detail. You can read it for more information.

上面的圖片摘自CSS Tricks的《網格的完整指南》 。 它詳細解釋了每個值的作用。 您可以閱讀以獲取更多信息。

Our focus here is remembering the properties and how to use them. Let’s get back on track with the next set of properties.

我們在這里的重點是記住這些屬性以及如何使用它們。 讓我們回到下一組屬性上。

justify-items and align-items lets you align grid-items to any available whitespace in their respective cells. Most of the time, when you’re trying to align things, you’re looking for either justify-items or align-items.

justify-itemsalign-items使您可以將網格項與它們各自單元格中的任何可用空格對齊。 在大多數情況下,當您嘗試對齊內容時,您會尋找justify-itemsalign-items

.grid {  justify-items: /* some value */;   align-items: /* some value */; }

You can pick from the same four values:

您可以從相同的四個值中進行選擇:

  1. start: flush item to the start of the axis

    start :將項目沖洗到軸的起點

  2. end: flush item to the end of the axis

    end :將項目沖洗到軸的末端

  3. center: align item to the center of the axis

    中心 :將項目與軸中心對齊

  4. stretch: fills the axis (this is the default value)

    Stretch :填充軸(這是默認值)

justify-self and align-self does the same thing as justify-items and align-items. The difference is it lets you change the alignment for only one grid-item.

justify-selfalign-selfjustify-itemsalign-items 。 不同之處在于,它僅允許您更改一個網格項目的對齊方式。

.grid-item {  justify-self: /* some value */;  align-self: /* some value */;}

隱式網格 (Implicit Grid)

Let’s say you created a CSS Grid, but you don’t have enough rows. In this example below, I only created an explicit grid for three items (3 columns, 1 row).

假設您創建了一個CSS網格,但是沒有足夠的行。 在下面的示例中,我僅為三個項目(3列1行)創建了一個顯式網格。

.grid {  display: grid;   grid-template-columns: 1fr 1fr 1fr;  grid-template-row: 3em;}

But I have six items!

但是我有六個項目!

<!-- This is HTML -->
<div class="grid">  <div class="grid-item"></div>  <div class="grid-item"></div>  <div class="grid-item"></div>  <div class="grid-item"></div>  <div class="grid-item"></div>  <div class="grid-item"></div></div>

When you don’t have enough space in your explicit grid, CSS Grid will help you create additional grids automatically. By default, it’ll create more rows.

當您的顯式網格中沒有足夠的空間時,CSS Grid將幫助您自動創建其他網格。 默認情況下,它將創建更多行。

If you want to switch the grid direction, you’ll set grid-auto-flow to row.

如果要切換網格方向,則將grid-auto-flowrow

This automatically created parts are called the implicit grid.

自動創建的零件稱為隱式網格。

You can adjust the automatically created column(s) or row(s) with these two properties:

您可以使用以下兩個屬性來調整自動創建的列或行:

  1. grid-auto-columns

    grid-auto-columns

  2. grid-auto-rows

    grid-auto-rows

.grid {  display: grid;   grid-template-columns: 1fr 1fr 1fr;  grid-template-rows: 3em;   grid-auto-rows: 6em;}

See the Pen Implicit grid by Zell Liew (@zellwk) on CodePen.

見筆隱格由澤爾與Liew( @zellwk )上CodePen 。

如何記住隱式網格 (How to remember the implicit grid)

auto is the keyword you want to watch out for.

auto是您要注意的關鍵字。

  1. template creates the explicit grid

    template創建顯式網格

  2. auto creates the implicit grid

    auto創建隱式網格

I use the implicit grid a lot. I’ll share how I use CSS Grid in another article.

我經常使用隱式網格。 在另一篇文章中,我將分享如何使用CSS Grid。

結語 (Wrapping up)

That’s almost every CSS Grid property you need to know for 80% of your grids! Here’s a summary of the properties you learned:

這幾乎是您80%的網格都需要知道的每個CSS Grid屬性! 這是您了解的屬性的摘要:

  • Creating a grid

    創建網格

    a. Explicit:

    一個。 顯式:

    1)

    1)

    grid-template-columns

    grid-template-columns

    2)

    2)

    grid-template-rows

    grid-template-rows

    3)

    3)

    grid-template-areas

    grid-template-areas

    b. Implicit:

    b。 隱式:

    1)

    1)

    grid-auto-columns

    grid-auto-columns

    2)

    2)

    grid-auto-rows

    grid-auto-rows

  • Gaps

    縫隙

    1)

    1)

    grid-column-gap

    grid-column-gap

    2)

    2)

    grid-row-gap

    grid-row-gap

    3)

    3)

    grid-gap

    grid-gap

  • Positioning items in a grid

    在網格中定位項目

    1)

    1)

    grid-column

    grid-column

    2)

    2)

    grid-row

    grid-row

  • Aligning things

    對齊事物

    1)

    1)

    justify-content

    justify-content

    2)

    2)

    align-content

    align-content

    3)

    3)

    justify-items

    justify-items

    4)

    4)

    align-items

    align-items

    5)

    5)

    justify-self

    justify-self

    6)

    6)

    align-self

    align-self

I hope this helps you remember CSS Grid! All the best!

希望這可以幫助您記住CSS Grid! 祝一切順利!

Thanks for reading. Did this article help you in any way? If you did, I hope you consider sharing it. You might help someone out. Thank you!

謝謝閱讀。 本文對您有任何幫助嗎? 如果這樣做, 希望您考慮共享它 。 您可能會幫助某人。 謝謝!

This article was originally posted at zellwk.com.Sign up for my newsletter if you want more articles to help you become a better frontend developer.

本文最初發布于zellwk.com 。 如果您想獲得更多文章來幫助您成為更好的前端開發人員,請注冊我的時事通訊 。

翻譯自: https://www.freecodecamp.org/news/how-i-remember-css-grid-properties-3afee895763/

css網格

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/392864.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/392864.shtml
英文地址,請注明出處:http://en.pswp.cn/news/392864.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

2017年讀書計劃(一)

前言 這篇博文就暫時不記錄技術了&#xff0c;記錄下生活。對自己今年2017年做個讀書計劃安排。 最近在看一部網絡劇 - 《花間提壺方大廚》&#xff0c;也許你們會感覺我很無聊&#xff0c;我也是被頭條帶壞了&#xff0c;每天上班一個小時的地下交通-地鐵&#xff0c;就借助上…

.net10個必備工具

1.NUnit 編寫單元測試的工具2.NDoc 自動生成代碼文檔的工具3.NAnt 編譯解決方案的工具4.CodeSmith 自動生成代碼的工具5.FxCop 檢查你的代碼是否按照規范編寫的工具6.Snippet Compiler 編譯少量代碼的工具7.ASP.NET Version Switcher Visual Studio .NET Project Conve…

音標

音標 oror ds念子音&#xff0c;ts念s音

leetcode 530. 二叉搜索樹的最小絕對差(中序遍歷)

給你一棵所有節點為非負值的二叉搜索樹&#xff0c;請你計算樹中任意兩節點的差的絕對值的最小值。示例&#xff1a;輸入&#xff1a;1\3/2輸出&#xff1a; 1解釋&#xff1a; 最小絕對差為 1&#xff0c;其中 2 和 1 的差的絕對值為 1&#xff08;或者 2 和 3&#xff09;。代…

計算機排線知識,一種計算機排線梳理裝置制造方法及圖紙

【技術實現步驟摘要】一種計算機排線梳理裝置本技術涉及計算機排線梳理&#xff0c;具體涉及一種計算機排線梳理裝置。技術介紹計算機俗稱電腦&#xff0c;是現代一種用于高速計算的電子計算機器&#xff0c;可以進行數值計算&#xff0c;又可以進行邏輯計算&#xff0c;還具有…

github和pypi_如何將GitHub用作PyPi服務器

github和pypiI was looking for a hosted private PyPi Python Package server, that used credentials that the team already has (such as GitHub).我正在尋找一個托管的私有PyPi Python Package服務器&#xff0c;該服務器使用了團隊已經擁有的憑據(例如GitHub)。 I didn’…

數據結構與算法---查找算法(Search Algorithm)

查找算法介紹 在java中&#xff0c;我們常用的查找有四種: 順序(線性)查找 二分查找/折半查找 插值查找斐波那契查找1)線性查找算法 示例&#xff1a; 有一個數列&#xff1a; {1,8, 10, 89, 1000, 1234} &#xff0c;判斷數列中是否包含此名稱【順序查找】 要求: 如果找到了&a…

Exchange Server 2007郵箱存儲服務器的集群和高可用性技術(上)

高可用性矩陣-->見下圖:郵箱服務器高可用性目標: 數據可用性-->保護郵箱數據免于失敗和損壞服務可用性-->提高群集實效轉移操作 簡化群集管理 支持地理分散的群集 支持低成本大郵箱(GB)使用戶可以基于業務需要更好的選擇容錯方案提高解決方案的可用性使用解決方案可…

【C/C++開發】C++實現字符串替換的兩種方法

替換字符串replace() erase()//C 第一種替換字符串的方法用replace()|C 第二種替換字符串的方法用erase()和insert()【 Cstring|C replace()|C erase()|C insert()|C自定義替換字符串函數】#include<string> #include<iostream> using namespace std;//第一種替換字…

html設置按鈕樣式變為橢圓,css border-radius圓形變為橢圓形,位置:絕對

我正在圍繞字體真棒圖標創建一個圓圈。我的問題是&#xff0c;當我添加position: absolute圓成為一個橢圓。css border-radius圓形變為橢圓形&#xff0c;位置&#xff1a;絕對同樣的情況&#xff0c;如果我是設置display: block這里是什么&#xff0c;我想實現的圖像 -CONRADU…

《火球——UML大戰需求分析》(第1章 大話UML)——1.5 小結和練習

說明&#xff1a; 《火球——UML大戰需求分析》是我撰寫的一本關于需求分析及UML方面的書&#xff0c;我將會在CSDN上為大家分享前面幾章的內容&#xff0c;總字數在幾萬以上&#xff0c;圖片有數十張。歡迎你按文章的序號順序閱讀&#xff0c;謝謝&#xff01;本書已經在各大網…

金陵科技學院計算機開設課程,金陵科技學院各專業介紹

各專業介紹會計學專業(四年制本科) 金融學專業(四年制本科)財務管理專業(四年制本科) 國際經濟與貿易專業(四年制本科)市場營銷專業(四年制本科)國際商務專業(三年制專科)物流管理專業(三年制專科) 對外漢語專業(四年制本科)古典文獻(古籍修復)專業(四年制本科)行政管理(高級秘…

【jQuery Demo】圖片由下至上逐漸顯示

無意中看到如何實現一張圖片從下往上慢慢顯現出來這個問題&#xff0c;弄了半天還是從上往下的效果&#xff0c;糾結了&#xff0c;最后還是提問人自己搞定了&#xff01;不過哈哈&#xff0c;又學到一點知識&#xff01; 1.下面是我自己做的效果(按鈕可以點哦) 圖片由下至上逐…

Morphia - mongodb之ORM框架

一、簡介 二、注解 1、Entity 2、Id3、Indexed4、Embedded5、Transient和Property6、Reference 三、示例 四、參考資料 Morphia快速入門 Morphia 注解詳解 使用Morphia框架操作mongodb 使用 Morphia 和 MongoDB 實現持久化 Spring中Mongodb的java實體類映射 ORM框架Morphia的學…

石頭剪刀布游戲web_Web開發教程-剪刀石頭布

石頭剪刀布游戲webThis web development tutorial shows how to use JavaScript, HTML, and CSS to create a rock Paper Scissors Game in the browser.這份網絡開發教程展示了如何使用JavaScript&#xff0c;HTML和CSS在瀏覽器中創建石頭剪刀布游戲。 Tenzin explains every…

兩個數之和等于第三個數

這是一個很好的算法題&#xff0c;解法類似于快速排序的整理方法。同時&#xff0c;更為值得注意的是這道題是 人人網2014校園招聘的筆試題&#xff0c;下面首先對題目進行描述&#xff1a; 給出一個有序數組&#xff0c;另外給出第三個數&#xff0c;問是否能在數組中找到兩個…

html標題前色塊,CSS輕松實現色塊標題標識

不少網站開始采用韓式風格來建站&#xff0c;這種風格的特點是色彩變化豐富、應用Flash動畫合理、結構新穎&#xff0c;最明顯的特點就是表格或標題欄常會加上一條橫或豎的色帶&#xff0c;如圖1中圈起來的地方就是這樣。(圖一)一般人都會想到用Photoshop等軟件來完成這樣的效果…

Git 基礎 - 遠程倉庫的使用

遠程倉庫的使用 要參與任何一個 Git 項目的協作&#xff0c;必須要了解該如何管理遠程倉庫。遠程倉庫是指托管在網絡上的項目倉庫&#xff0c;可能會有好多個&#xff0c;其中有些你只能讀&#xff0c;另外有些可以寫。同他人協作開發某個項目時&#xff0c;需要管理這些遠程倉…

山東理工大學第七屆ACM校賽-G 飛花的傳送門

G - 飛花的傳送門飛花壕最近手頭比較寬裕&#xff0c;所以想買兩個傳送門來代步&#xff08;夏天太熱&#xff0c;實在是懶得走路&#xff09;。平面上有N個傳送門&#xff0c;飛花壕想要挑兩個距離最遠的傳送門帶回家&#xff08;距離為歐幾里得距離&#xff0c;即兩點之間直線…

leetcode 1002. 查找常用字符

給定僅有小寫字母組成的字符串數組 A&#xff0c;返回列表中的每個字符串中都顯示的全部字符&#xff08;包括重復字符&#xff09;組成的列表。例如&#xff0c;如果一個字符在每個字符串中出現 3 次&#xff0c;但不是 4 次&#xff0c;則需要在最終答案中包含該字符 3 次。 …