和css3實例教程_最好CSS和CSS3教程

和css3實例教程

級聯樣式表(CSS) (Cascading Style Sheets (CSS))

CSS is an acronym for Cascading Style Sheets. It was first invented in 1996, and is now a standard feature of all major web browsers.

CSS是層疊樣式表的縮寫。 它于1996年首次發明,現在已成為所有主要網絡瀏覽器的標準功能。

CSS allows for developers to control how web pages look by “styling” the HTML structure of that page.

CSS允許開發人員通過“樣式化”頁面HTML結構來控制網頁的外觀。

CSS specifications are maintained by the World Wide Web Consortium (W3C).

CSS規范由萬維網聯盟(W3C)維護。

You can build some pretty amazing things in CSS alone, such as this pure-CSS Minesweeper game (which uses no JavaScript).

您可以單獨在CSS中構建一些非常令人驚奇的東西,例如此純CSS Minesweeper游戲 (不使用JavaScript)。

A good start is the freeCodeCamp curriculum Introduction to Basic CSS.

一個很好的開始是freeCodeCamp課程“基本CSS簡介” 。

Another suggestion for beginners is W3C’s Starting with HTML + CSS which teaches how to create a style sheet.

初學者的另一個建議是W3C的HTML + CSS入門,它教如何創建樣式表。

The site CSS Zen Garden is a great example how the same html can be styled to look totally unique.

CSS Zen Garden網站是一個很好的示例,說明了如何將相同的html設置為完全獨特的樣式。

For a demonstration of the power of CSS, check out Species In Pieces.

有關CSS強大功能的演示,請查看Species In Pieces 。

CSS和CSS3入門教程 (Tutorials for starting with CSS and CSS3)

The best place to start learning CSS is with freeCodeCamp's 2-hour intro to CSS tutorial.

開始學習CSS的最佳位置是freeCodeCamp的CSS教程2小時入門 。

Then, if you're feeling more adventurous, we have an entire 12-hour course that covers HTML, HTML5, and CSS in detail.

然后,如果您感到更冒險,我們將提供完整的12小時課程,詳細介紹HTML,HTML5和CSS 。

彈性盒 (Flexbox)

Flexbox is a new way to structure content in CSS3. It provides a wonderful way to create responsive websites that work well across different screen sizes and order content.

Flexbox是一種在CSS3中構造內容的新方法。 它提供了一種出色的方式來創建可在不同屏幕尺寸和訂單內容下正常運行的響應式網站。

There are 3 simple steps to use Flexbox:

使用Flexbox只需3個簡單的步驟:

  1. Convert the parent container to a flex container by using display: flex;

    通過使用display: flex;將父容器轉換為flex容器display: flex;

  2. Adjust the layout of different containers by using flex-direction

    通過使用flex-direction調整不同容器的布局

  3. Adjust the layout of items within a container by using properties like justify-content, align-items, and so on

    通過使用justify-contentalign-items等屬性來調整容器中項目的布局

Flexbox allows you to efficiently lay out, align, and adjust the space among different page elements, even if you don't know their exact size. Instead, items and containers are dynamic, and will "flex" to best fill the available space.

Flexbox允許您有效地布局,對齊和調整不同頁面元素之間的空間,即使您不知道它們的確切大小。 相反,項目和容器是動態的,并且將“靈活”以最佳地填充可用空間。

  • main-axis: The primary axis of a flex container along which flex items are laid out. Keep in mind that this can be horizontal or vertical depending on the flex-direction property.

    main-axis :伸縮容器的主軸,可沿其放置伸縮項。 請記住,取決于flex-direction屬性,它可以是水平或垂直的。

  • main-start | main-end: Flex items are placed in a container from main-start to main-end.

    主啟動| 主端 Flex項目從main-startmain-end放置在容器中。

  • main size: A flex item's main dimension, which can be its width or height, acts as the item's main size.

    主要尺寸 :彈性商品的主要尺寸(可以是其寬度或高度)充當該商品的主要尺寸。

  • cross axis: The axis that is perpendicular to the main axis. The direction of the cross axis depends on the main axis's direction.

    橫軸 :垂直于主軸的軸。 橫軸的方向取決于主軸的方向。

  • cross-start | cross-end: Flex lines and items are placed in a flex container starting from the cross-start to the cross-end side.

    交叉啟動| cross-end :柔性線和項目從cross-startcross-end側放置在彈性容器中。

  • cross size: The item's cross dimension (width or height) acts as the item's cross size.

    十字尺寸 :商品的十字尺寸(寬度或高度)用作商品的十字尺寸。

網格布局 (Grid Layout)

CSS Grid Layout, simply known as Grid, is a layout scheme that is the newest and the most powerful in CSS. It is supported by all major browsers and provides a way to position items on the page and move them around.

CSS網格布局,簡稱為Grid,是CSS中最新,功能最強大的布局方案。 所有主要瀏覽器均支持該功能,并提供了一種在頁面上定位項目并在其中移動項目的方法。

It can automatically assign items to areas, size and resize them, take care of creating columns and rows based on a pattern you define, and it does all the calculations using the newly introduced fr unit.

它可以自動將項目分配給區域 ,調整大小并調整它們的大小,并根據您定義的模式創建列和行,并使用新引入的fr單位進行所有計算。

為什么選擇網格? (Why Grid?)

  • You can easily have a 12-column grid with one line of CSS. grid-template-columns: repeat(12, 1fr)

    您可以輕松地使用一行CSS來組成一個12列的網格。 grid-template-columns: repeat(12, 1fr)

  • Grid lets you move things in any direction. Unlike Flex, where you can move items either horizontally (flex-direction: row) or vertically (flex-direction: column) - and not both at the same time - Grid lets you move any grid item to any predefined grid area on the page. The items you move do not have to be adjacent.

    網格使您可以向任何方向移動事物。 與Flex不同,Flex可以在水平方向( flex-direction: row )或垂直方向( flex-direction: column )上移動內容-不能同時移動兩者-網格使您可以將任何網格項目移動到頁面上的任何預定義網格區域 。 您移動的項目不必相鄰。

  • With CSS Grid, you can change the order of HTML elements using only CSS. Move something from top to the right, move elements that were in the footer to the sidebar etc. Instead of moving the <div>from <footer> to <aside> in the HTML, you can just change its placement with grid-area in the CSS stylesheet.

    使用CSS Grid,您可以僅使用CSS更改HTML元素的順序 。 從頂部向右移動某些內容,將頁腳中的元素移動到側邊欄等。代替將<div><footer>移到HTML中的<aside> ,您只需在grid-area使用grid-area更改其位置即可。 CSS樣式表。

網格與Flex (Grid vs. Flex)

  • Flex is one-dimensional - either horizontal or vertical, while Grid is two-dimensional, meaning you can move elements in both horizontal and vertical planes

    Flex是一維的-水平或垂直,而Grid是二維的,這意味著您可以在水平和垂直平面中移動元素
  • In Grid, we apply layout styles to the parent container and not the items. Flex, on the other hand, targets the flex item to set properties like flex-basis, flex-grow, and flex-shrink

    在Grid中,我們將布局樣式應用于父容器而不是項目。 另一方面,Flex將flex項目作為目標,以設置諸如flex-basisflex-growflex-shrink屬性

  • Grid and Flex are not mutually exclusive. You can use both on the same project.

    網格和Flex并不互斥。 您可以在同一項目中使用它們。

使用@supports檢查瀏覽器兼容性 (Checking browser compatibility with @supports)

Ideally, when you build a site, you’d design it with Grid and use Flex as a fallback. You can find out if your browser supports grid with the @support CSS rule (aka feature query). Here’s an example:

理想情況下,構建網站時,可以使用Grid進行設計,并使用Flex作為后備。 您可以使用@support CSS規則(也稱為功能查詢)來確定瀏覽器是否支持網格。 這是一個例子:

.container {display: grid; /* display grid by default */
}@supports not (display: grid) { /* if grid is not supported by the browser */.container {display: flex; /* display flex instead of grid */}
}

入門 (Getting Started)

To make any element a grid, you need to assign its display property to grid, like so:

要使任何元素成為網格,您需要將其display屬性分配給grid ,如下所示:

.conatiner {display: grid;
}

And that’s it. You just made your .container a grid. Every element inside the .container automatically becomes a grid item.

就是這樣。 您只是將.container為網格。 .container每個元素.container自動成為網格項。

定義模板 (Defining templates)

Rows and columns

行和列

grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: auto 300px;

Areas

地區

grid-template-areas: "a a a a""b c d e""b c d e""f f f f";

or

要么

grid-template-areas:"header header header header""nav main main sidebar";

網格區域 (Grid Areas)

Here’s some sample code on how to define and assign grid areas:

以下是一些有關如何定義和分配網格區域的示例代碼:

.site {display: grid;grid-template-areas: /* applied to grid container */"head head" /* you're assigning cells to areas by giving the cells an area name */"nav  main" /* how many values kind of depends on how many cells you have in the grid */"nav  foot";
}.site > header {grid-area: head;
}.site > nav {grid-area: nav;
}.site > main {grid-area: main;
}.site > footer {grid-area: foot;
}

fr單位 (The fr unit)

Grid introduces a new fr unit, which stands for fraction. The good thing about using the fr unit is that it takes care of calculations for you. Using fr avoids margin and padding issues. With % and em etc. it becomes a math equation when calculating grid-gap. If you used fr unit, it’ll automatically calculate both column and gutter sizes and adjust the size of the columns accordingly. Plus there will be no bleeding gaps at the end either.

Grid引入了一個新的fr單位,代表分數 。 使用fr單位的好處是它可以為您計算。 使用fr可以避免邊距和填充問題。 使用%em等,它成為計算grid-gap時的數學方程。 如果使用fr單位,它將自動計算列大小和裝訂線大小,并相應地調整列大小。 另外,最后也不會有出血間隙。

例子 (Examples)

根據屏幕大小更改元素的順序 (Changing the order of elements based on screen size)

Let’s say you want to move the footer to the bottom on small screens and to the right on bigger screens, and there’s a bunch of other HTML elements in between the two.

假設您要將頁腳在小屏幕上移至底部,在大屏幕上移至右側,并且在這兩者之間還有許多其他HTML元素。

The simple solution is to change the grid-template-areas based on the screen size. You can also change the number of columns and rows based on the screen size, too. This is a much cleaner and simpler alternative to Bootstrap’s Grid system (col-xs-8 col-sm-6 col-md-4 col-lg-3).

簡單的解決方案是根據屏幕尺寸更改grid-template-areas 。 您也可以根據屏幕尺寸更改列數和行數 。 這是Bootstrap網格系統( col-xs-8 col-sm-6 col-md-4 col-lg-3 )的一種更干凈,更簡單的替代方法。

.site {display: grid;grid-template-columns: 1fr 1fr;grid-template-areas:"title title""main header""main sidebar"
}@media screen and (min-width: 34em) { /* If the screen is big enough, use a different template for grid areas */.site {grid-template-columns: 2fr 1fr 1fr;grid-template-areas:"title title title""main header header""main sidebar footer"}
}

更多信息: (More Information:)

  • CSS Grid Palyground by Mozilla: Great starting point if you’re new to CSS Grids. It has visuals to help you understand the terminology easily

    Mozilla撰寫CSS Grid Palyground :如果您不熟悉CSS網格,則是一個很好的起點。 它具有視覺效果,可幫助您輕松理解術語

  • YouTube: Morten Rand-Hendriksen: CSS Grid Changes Everything (About Web Layouts): This presentation will convince you in less than an hour why CSS Grids are cool and why/how you should use them.

    YouTube:Morten Rand-Hendriksen:CSS網格改變了一切(關于Web布局) :此演示文稿將在不到一個小時的時間內說服您CSS網格為何很棒,以及為什么/如何使用它們。

  • Videos: Learn Grid Layout Video Series by Rachel Andrew: Rachel Andrew is an expert on the subject. The video titles may look strange and overwhelming, but the content is short and to the point

    視頻:Rachel Andrew的“學習網格布局視頻系列” :Rachel Andrew是該主題的專家。 視頻標題可能看起來很奇怪且令人難以置信,但內容簡短而切合實際

  • Book: Get Ready for CSS Grid Layout by Rachel Andrew

    圖書:為Rachel Andrew準備CSS網格布局

選擇器 (Selectors)

Selectors are CSS rules to target HTML elements to apply styles. Tag names, class names, ids, and attributes are some of the hooks used as selectors.

選擇器是CSS規則,以HTML元素為目標以應用樣式。 標記名稱,類名稱,ID和屬性是用作選擇器的一些掛鉤。

選擇器語法 (Selector Syntax)

Selectors arranged in a specific sequence build up to a rule to target elements. An example:

以特定順序排列的選擇器構成了針對元素的規則。 一個例子:

/* selects anchor tags */
a { color: orange;
}/* selects elements with hero class */
.hero {text-align: center;
}

選擇器類型 (Type of Selectors)

  • TypeDescription are Type selectors and Tag names are used to select elements such as h1 or a.

    TypeDescription是類型選擇器,標記名稱用于選擇元素,例如h1a

  • Universal Selectors apply to all elements.

    通用選擇器適用于所有元素。
  • div * matches all elements within div elements.

    div *匹配div元素內的所有元素。

  • Attribute Selectors are Selectors that target elements based on their attributes [and optionally, their values].

    屬性選擇器是基于元素的屬性[和(可選地,它們的值)]定位元素的選擇器。
  • h1[title] selects h1 elements with title attribute.

    h1[title]選擇具有title屬性的h1元素。

  • Class Selectors are Selectors that target elements using their class names.

    類選擇器是使用元素的類名稱作為目標元素的選擇器。
  • ID Selectors are Selectors that use ID to target elements. #logo selects the element with logo as ID.

    ID選擇器是使用ID定位元素的選擇器。 #logo選擇帶有logo作為ID的元素。

  • Pseudo-class Selectors are Special selectors that target elements based on their state. a:hover selector applies style when pointer hovers over links.

    偽類選擇器是特殊選擇器,它們根據元素的狀態定位元素。 當指針懸停在鏈接上時, a:hover選擇器將應用樣式。

選擇器組合器 (Selector Combinators)

Combinator: Purpose white spaceDescendant combinator. .nav li selects all li children within the class .nav, including nested li elements.>Child combinator. .menu > li selects all li that are direct children of elements with .menu class.+Adjacent sibling combinator. .logo + h1 targets h1 that is an immediate sibling to .logo class.~General sibling combinator. header ~ div targets div elements that are siblings to header elements.

組合器:用途white space后代組合器。 .nav li選擇所有li該類內兒童.nav ,包括嵌套li元件。 >兒童組合器。 .menu > li選擇具有.menu類的元素的直接子元素的所有li。 +相鄰的同級組合器。 .logo + h1目標h1是立即同級.logo類。 ~普通同級組合器。 header ~ div div元素作為header元素的兄弟對象。

This section details all of these electors.

本節詳細介紹所有這些選民。

更多信息: (More Information:)

You can learn more about selectors on these resources:

您可以通過以下資源了解有關選擇器的更多信息:

  • Official CSS3 Selectors specification

    官方CSS3選擇器規范

  • Selectors page on Mozilla Developer Network

    Mozilla開發人員網絡上的“選擇器”頁面

  • CSS Selectors Cheat Sheet on FreeCodeCamp Guides

    FreeCodeCamp指南上CSS選擇器備忘單

Selectors in CSS (cascading style sheets) are determined based on specificity. With this we are able to be more specific on our style rules and override other rules that may be targeting the same element but are not as specific.

CSS(級聯樣式表)中的選擇器是根據特定性確定的 這樣,我們就可以更具體地定義樣式規則,并覆蓋可能針對同一元素但不那么具體的其他規則。

The way this specificity hierarchy works is based on weight. This means that an element Selector has a weight of 1 (one), a class selector has a weight of 10 (ten) and a id selector has a weight of 100 (one hundred). We are able to combine different selectors together be more specific on the element we want to change.

這種特異性層次結構的工作方式基于權重。 這意味著元素選擇器的權重為1(一),類選擇器的權重為10(十),id選擇器的權重為100(一百)。 我們能夠將不同的選擇器組合在一起,從而更具體地定義我們要更改的元素。

As an example:

舉個例子:

p {color: blue;}p .red {color: red;}

Our type selector p will select all p elements in our html document, but it only has a weight of one. In contrast, the class selector has a weight of 11, because we are combining a type selector with a class selector (this selector is matching all p elements with a class of red).

我們的類型選擇器p將選擇html文檔中的所有p個元素,但其權重僅為1。 相反,類選擇器的權重為11,因為我們將類型選擇器與類選擇器組合在一起(該選擇器將所有p個元素與紅色類匹配)。

Note:

注意:

  • Directly targeted rules will always have precedence over rules which inherit elements from their ancestor.

    直接定向的規則將始終優先于從其祖先繼承元素的規則。
  • Specificity is only applied when multiple declarations are targeting the same element, and only then this rule is applied.

    僅當多個聲明針對同一元素時才應用特異性,然后才應用此規則。
  • Specificity is usually why some of the style rules do not apply to elements when you would expect them to.

    特殊性通常就是為什么某些樣式規則在您期望的時候不適用于元素。

CSS顯示 (CSS Display)

The display property specifies the type of box used for an HTML element. It has 20 possible keyword values. The commonly used ones are:

display屬性指定用于HTML元素的框的類型。 它有20個可能的關鍵字值。 常用的有:

.none             {display: none}.block            {display: block}.inline-block     {display: inline-block}.inline           {display: inline}.flex             {display: flex}.inline-flex      {display: inline-flex}.inline-table     {display: inline-table}.table            {display: table}.inherit          {display: inherit}.initial          {display: initial}

The display:none property can often be helpful when making a website responsive. For example, you may want to hide an element on a page as the screen size shrinks in order to compensate for the lack of space. display: none will not only hide the element, but all other elements on the page will behave as if that element does not exist.

當使網站響應時, display:none屬性通常會很有幫助。 例如,您可能想在屏幕尺寸縮小時隱藏頁面上的元素,以彌補空間的不足。 display: none不僅會隱藏該元素,而且頁面上的所有其他元素也會表現為該元素不存在。

This is the biggest difference between this property and the visibility: hidden property, which hides the element but keeps all other page elements in the same place as they would appear if the hidden element was visible.

這是此屬性與visibility: hidden之間的最大區別visibility: hidden屬性,該屬性隱藏元素,但將所有其他頁面元素保持在與隱藏元素可見的情況下相同的位置。

These keyword values are grouped into six categories:

這些關鍵字值分為六類:

  • <display-inside>

    <display-inside>

  • <display-outside>

    <display-outside>

  • <display-listitem>

    <display-listitem>

  • <display-box>

    <display-box>

  • <display-internal>

    <display-internal>

  • <display-legacy>

    <display-legacy>

翻譯自: https://www.freecodecamp.org/news/best-css-and-css3-tutorial/

和css3實例教程

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

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

相關文章

leetcode 1442. 形成兩個異或相等數組的三元組數目(位運算)

給你一個整數數組 arr 。 現需要從數組中取三個下標 i、j 和 k &#xff0c;其中 (0 < i < j < k < arr.length) 。 a 和 b 定義如下&#xff1a; a arr[i] ^ arr[i 1] ^ … ^ arr[j - 1] b arr[j] ^ arr[j 1] ^ … ^ arr[k] 注意&#xff1a;^ 表示 按位異…

數據科學與大數據技術的案例_作為數據科學家解決問題的案例研究

數據科學與大數據技術的案例There are two myths about how data scientists solve problems: one is that the problem naturally exists, hence the challenge for a data scientist is to use an algorithm and put it into production. Another myth considers data scient…

AJAX, callback,promise and generator

AJAX with jQuery $.ajax({url:??,type:??,data:??,success: function(){??} //callback,error:function(jqXHR,textStatus,error){??} })think about what AJAX wants from human , AJAX asks questions : tell Me By Which Way You Want To Do Things : —— GET …

Spring-Boot + AOP實現多數據源動態切換

2019獨角獸企業重金招聘Python工程師標準>>> 最近在做保證金余額查詢優化&#xff0c;在項目啟動時候需要把余額全量加載到本地緩存&#xff0c;因為需要全量查詢所有騎手的保證金余額&#xff0c;為了不影響主數據庫的性能&#xff0c;考慮把這個查詢走從庫。所以涉…

css 幻燈片_如何使用HTML,CSS和JavaScript創建幻燈片

css 幻燈片A web slideshow is a sequence of images or text that consists of showing one element of the sequence in a certain time interval.網絡幻燈片是一系列圖像或文本&#xff0c;包括在一定時間間隔內顯示序列中的一個元素。 For this tutorial you can create a…

leetcode 1738. 找出第 K 大的異或坐標值

本文正在參加「Java主題月 - Java 刷題打卡」&#xff0c;詳情查看 活動鏈接 題目 給你一個二維矩陣 matrix 和一個整數 k &#xff0c;矩陣大小為 m x n 由非負整數組成。 矩陣中坐標 (a, b) 的 值 可由對所有滿足 0 < i < a < m 且 0 < j < b < n 的元素…

【數據庫】Oracle用戶、授權、角色管理

創建和刪除用戶是Oracle用戶管理中的常見操作&#xff0c;但這其中隱含了Oracle數據庫系統的系統權限與對象權限方面的知識。掌握還Oracle用戶的授權操作和原理&#xff0c;可以有效提升我們的工作效率。 Oracle數據庫的權限系統分為系統權限與對象權限。系統權限( Database Sy…

商業數據科學

數據科學 &#xff0c; 意見 (Data Science, Opinion) “There is a saying, ‘A jack of all trades and a master of none.’ When it comes to being a data scientist you need to be a bit like this, but perhaps a better saying would be, ‘A jack of all trades and …

為什么游戲開發者不玩游戲_什么是游戲開發?

為什么游戲開發者不玩游戲Game Development is the art of creating games and describes the design, development and release of a game. It may involve concept generation, design, build, test and release. While you create a game, it is important to think about t…

leetcode 692. 前K個高頻單詞

題目 給一非空的單詞列表&#xff0c;返回前 k 個出現次數最多的單詞。 返回的答案應該按單詞出現頻率由高到低排序。如果不同的單詞有相同出現頻率&#xff0c;按字母順序排序。 示例 1&#xff1a; 輸入: ["i", "love", "leetcode", "…

數據顯示,中國近一半的獨角獸企業由“BATJ”四巨頭投資

中國的互聯網行業越來越有被巨頭壟斷的趨勢。百度、阿里巴巴、騰訊、京東&#xff0c;這四大巨頭支撐起了中國近一半的獨角獸企業。CB Insights日前發表了題為“Nearly Half Of China’s Unicorns Backed By Baidu, Alibaba, Tencent, Or JD.com”的數據分析文章&#xff0c;列…

Java的Servlet、Filter、Interceptor、Listener

寫在前面&#xff1a; 使用Spring-Boot時&#xff0c;嵌入式Servlet容器可以通過掃描注解&#xff08;ServletComponentScan&#xff09;的方式注冊Servlet、Filter和Servlet規范的所有監聽器&#xff08;如HttpSessionListener監聽器&#xff09;。 Spring boot 的主 Servlet…

html5教程_最好HTML和HTML5教程

html5教程HyperText Markup Language (HTML) is a markup language used to construct online documents and is the foundation of most websites today. A markup language like HTML allows us to超文本標記語言(HTML)是用于構造在線文檔的標記語言&#xff0c;并且是當今大…

leetcode 1035. 不相交的線(dp)

在兩條獨立的水平線上按給定的順序寫下 nums1 和 nums2 中的整數。 現在&#xff0c;可以繪制一些連接兩個數字 nums1[i] 和 nums2[j] 的直線&#xff0c;這些直線需要同時滿足滿足&#xff1a; nums1[i] nums2[j] 且繪制的直線不與任何其他連線&#xff08;非水平線&#x…

SPI和RAM IP核

學習目的&#xff1a; &#xff08;1&#xff09; 熟悉SPI接口和它的讀寫時序&#xff1b; &#xff08;2&#xff09; 復習Verilog仿真語句中的$readmemb命令和$display命令&#xff1b; &#xff08;3&#xff09; 掌握SPI接口寫時序操作的硬件語言描述流程&#xff08;本例僅…

個人技術博客Alpha----Android Studio UI學習

項目聯系 這次的項目我在前端組&#xff0c;負責UI&#xff0c;下面簡略講下學到的內容和使用AS過程中遇到的一些問題及其解決方法。 常見UI控件的使用 1.TextView 在TextView中&#xff0c;首先用android:id給當前控件定義一個唯一標識符。在活動中通過這個標識符對控件進行事…

數據科學家數據分析師_站出來! 分析人員,數據科學家和其他所有人的領導和溝通技巧...

數據科學家數據分析師這一切如何發生&#xff1f; (How did this All Happen?) As I reflect on my life over the past few years, even though I worked my butt off to get into Data Science as a Product Analyst, I sometimes still find myself begging the question, …

leetcode 810. 黑板異或游戲

黑板上寫著一個非負整數數組 nums[i] 。Alice 和 Bob 輪流從黑板上擦掉一個數字&#xff0c;Alice 先手。如果擦除一個數字后&#xff0c;剩余的所有數字按位異或運算得出的結果等于 0 的話&#xff0c;當前玩家游戲失敗。 (另外&#xff0c;如果只剩一個數字&#xff0c;按位異…

react-hooks_在5分鐘內學習React Hooks-初學者教程

react-hooksSometimes 5 minutes is all youve got. So in this article, were just going to touch on two of the most used hooks in React: useState and useEffect. 有時只有5分鐘。 因此&#xff0c;在本文中&#xff0c;我們僅涉及React中兩個最常用的鉤子&#xff1a; …

分析工作試用期收獲_免費使用零編碼技能探索數據分析

分析工作試用期收獲Have you been hearing the new industry buzzword — Data Analytics(it was AI-ML earlier) a lot lately? Does it sound complicated and yet simple enough? Understand the logic behind models but dont know how to code? Apprehensive of spendi…