系统性学习 CSS 指南及全 DEMO 练习

Posted iCSS前端趣闻

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了系统性学习 CSS 指南及全 DEMO 练习相关的知识,希望对你有一定的参考价值。

本文内容源自:property. You can pick color codes from our useful tool.

  • of html elements.

  • property for HTML elements in these CSS examples:

  • properties for HTML elements.

  • indicates that browsers see HTML elements as rectangular boxes.

  • property.

  • content with the following options:

  • by setting colors, controlling states, etc.

  • are presented on your web pages by following the CSS code examples below.

  • with these CSS code examples:

  • of HTML elements.

  • its content box.

  • elements to specified sides.

  • for styling elements in certain states.

  • style specific parts of elements.

  • for HTML elements and make them transparent.

  • for your websites.

  • and manipulate such content in other ways.

  • by indicating how input fields, submit buttons and text areas look.

  • by following the examples below.

  • property to rotate elements and create simple animations.

  • to create animation effects on elements.

  • for HTML elements by making them fade out, fade in, etc.

  • with different properties.

  • examples.

  • and styled with additional properties.

  • (the layout of a web page).

  • Build a responsive grid with CSS columns[384]
  • Build a responsive grid with two CSS columns[385]
  • Build and style CSS columns[386]
  • Set the box-sizing property to create CSS columns[387]
  • Flexbox

    Analyze these CSS code examples to learn how to create responsive websites by using flexbox[388].

  • Create flexible boxes[389]
  • Make image grid responsive using flexbox[390]
  • Create a responsive website layout with flexbox[391]
  • Set flex-direction: column[392]
  • Set flex-direction: column-reverse[393]
  • Set flex-direction: row[394]
  • Set flex-direction: row-reverse[395]
  • Define flex-wrap: wrap[396]
  • Define flex-wrap: nowrap[397]
  • Define flex-wrap: wrap-reverse[398]
  • Use flex-flow shorthand for flex-direction and flex-wrap[399]
  • Align flex items in a container with justify-content: center[400]
  • Align flex items in a container with justify-content: flex-start[401]
  • Align flex items in a container with justify-content: flex-end[402]
  • Align flex items in a container with justify-content: space-around[403]
  • Align flex items in a container with justify-content: space-between[404]
  • Center flex items vertically using align-items: center[405]
  • Align flex items at the top of a container with align-items: flex-start[406]
  • Align flex items at the bottom of a container with align-items: flex-end[407]
  • Stretch the container’s space to contain flex items using align-items: stretch[408]
  • Use align-items: baseline[409]
  • Set justify-content and align-items to center flex item perfectly[410]
  • Align flex lines using align-content: space-between[411]
  • Align flex lines using align-content: space-around[412]
  • Align flex lines using the default option align-content: stretch[413]
  • Align flex lines in the middle of a container using align-content: center[414]
  • Align flex lines in the beginning of a container with align-content: flex-start[415]
  • Align flex lines in the end of a container with align-content: flex-end[416]
  • Create flexible items inside a container[417]
  • Specify in what order flex items should be displayed[418]
  • Specify how much a flex item should grow in relation to other flex items[419]
  • Specify how much a flex item should shrink in relation to other flex items[420]
  • Determine the initial length of a flex item[421]
  • Use flex shorthand for flex-grow, flex-shrink, and flex-basis properties[422]
  • Align an item inside a flexible container using align-self: center[423]
  • Align individual flexible items with align-self: flex-start and flex-end[424]
  • Media Queries

    Learn to make your website mobile-friendly by including @media and breakpoints[425].

  • Change background color based on screen width[426]
  • Create a responsive navigation menu[427]
  • Align elements based on screen width[428]
  • Create a responsive layout with flex properties[429]
  • Hide unnecessary elements for small screen devices[430]
  • Adjust font size based on screen size[431]
  • Use media queries to create a flexible image gallery[432]
  • Create a flexible website using media queries[433]
  • Change layout orientation when a screen rotates[434]
  • Assign several min- and max- properties to a single @media rule[435]
  • Responsive

    These CSS code examples reveal additional options for creating responsive web pages.

  • Set viewport meta tag[436]
  • Keep the aspect ratio of an image when scaling[437]
  • Set image to cover area but keep aspect ratio[438]
  • Use different images based on device used[439]
  • Set min-device-width to respond to device viewport width[440]
  • Define HTML5[441]
  • Set a video player to scale up and down[442]
  • Add a responsive video[443]
  • 参考资料
    [1]

    A Sorted List of CSS Code Examples: Master Styling HTML Elements: https://www.bitdegree.org/learn/css-code

    [2]

    1. Color: https://www.bitdegree.org/learn/css-code#color

    [3]

    2. Backgrounds: https://www.bitdegree.org/learn/css-code#backgrounds

    [4]

    3. Borders: https://www.bitdegree.org/learn/css-code#borders

    [5]

    4. Margins: https://www.bitdegree.org/learn/css-code#margins

    [6]

    5. Padding: https://www.bitdegree.org/learn/css-code#padding

    [7]

    6. Height and Width: https://www.bitdegree.org/learn/css-code#height-and-width

    [8]

    7. Box Model: https://www.bitdegree.org/learn/css-code#box-model

    [9]

    8. Outline: https://www.bitdegree.org/learn/css-code#outline

    [10]

    9. Text: https://www.bitdegree.org/learn/css-code#text

    [11]

    10. Fonts: https://www.bitdegree.org/learn/css-code#fonts

    [12]

    11. Links: https://www.bitdegree.org/learn/css-code#links

    [13]

    12. Lists: https://www.bitdegree.org/learn/css-code#lists

    [14]

    13. Tables: https://www.bitdegree.org/learn/css-code#tables

    [15]

    14. Display: https://www.bitdegree.org/learn/css-code#display

    [16]

    15. Position: https://www.bitdegree.org/learn/css-code#position

    [17]

    16. Overflow: https://www.bitdegree.org/learn/css-code#overflow

    [18]

    17. Float: https://www.bitdegree.org/learn/css-code#float

    [19]

    18. Inline-Block: https://www.bitdegree.org/learn/css-code#inline-block

    [20]

    19. Align Elements: https://www.bitdegree.org/learn/css-code#align-elements

    [21]

    20. Combinators: https://www.bitdegree.org/learn/css-code#combinators

    [22]

    21. Pseudo-Class: https://www.bitdegree.org/learn/css-code#pseudo-class

    [23]

    22. Pseudo-Elements: https://www.bitdegree.org/learn/css-code#pseudo-elements

    [24]

    23. Opacity: https://www.bitdegree.org/learn/css-code#opacity

    [25]

    24. Navigation Bars: https://www.bitdegree.org/learn/css-code#navigation-bars

    [26]

    25. Dropdowns: https://www.bitdegree.org/learn/css-code#dropdowns

    [27]

    26. Images: https://www.bitdegree.org/learn/css-code#images

    [28]

    27. Attribute Selectors: https://www.bitdegree.org/learn/css-code#attribute-selectors

    [29]

    28. Forms: https://www.bitdegree.org/learn/css-code#forms

    [30]

    29. Counters: https://www.bitdegree.org/learn/css-code#counters

    [31]

    30. Website Layout: https://www.bitdegree.org/learn/css-code#website-layout

    [32]

    31. Transform: https://www.bitdegree.org/learn/css-code#transform

    [33]

    32. Transition: https://www.bitdegree.org/learn/css-code#transition

    [34]

    33. Animations: https://www.bitdegree.org/learn/css-code#animations

    [35]

    34. Tooltips: https://www.bitdegree.org/learn/css-code#tooltips

    [36]

    35. Buttons: https://www.bitdegree.org/learn/css-code#buttons

    [37]

    36. Pagination: https://www.bitdegree.org/learn/css-code#pagination

    [38]

    37. Multiple Columns: https://www.bitdegree.org/learn/css-code#multiple-columns

    [39]

    38. Grid: https://www.bitdegree.org/learn/css-code#grid

    [40]

    39. Flexbox: https://www.bitdegree.org/learn/css-code#flexbox

    [41]

    40. Media Queries: https://www.bitdegree.org/learn/css-code#media-queries

    [42]

    41. Responsive: https://www.bitdegree.org/learn/css-code#responsive

    [43]

    color: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-7

    [44]

    Pickeristic: https://www.bitdegree.org/learn/color-scale

    [45]

    Assign background-color to an element using color names: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-1

    [46]

    Assign background-color to an element using RGB indicators: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-2

    [47]

    Assign background-color to an element using RGBA indicators: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-4

    [48]

    Assign background-color to an element using HEX indicators: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-3

    [49]

    Assign background-color to an element using HSL indicators: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-5

    [50]

    Assign background-color to an element using HSLA indicators: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-6

    [51]

    Specify how opaque or how transparent a color is: https://www.bitdegree.org/learn/best-code-editor/css-colors-example-7

    [52]

    backgrounds: https://www.bitdegree.org/learn/css-background-color

    [53]

    Set background color: https://www.bitdegree.org/learn/best-code-editor/css-backgrounds-example-1

    [54]

    Use background image: https://www.bitdegree.org/learn/best-code-editor/css-backgrounds-example-2

    [55]

    Repeat background image: https://www.bitdegree.org/learn/best-code-editor/css-backgrounds-example-3

    [56]

    Specify background image position: https://www.bitdegree.org/learn/best-code-editor/css-backgrounds-example-4

    [57]

    Use background attachment property: https://www.bitdegree.org/learn/best-code-editor/css-backgrounds-example-5

    [58]

    Background shorthand example: https://www.bitdegree.org/learn/best-code-editor/css-backgrounds-example-6

    [59]

    Set multiple background images: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-1

    [60]

    Use shorthand to set multiple background images: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-2

    [61]

    Resize background image: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-3

    [62]

    Contain and cover background size: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-4

    [63]

    Set size for multiple background images: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-5

    [64]

    Full size background image: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-6

    [65]

    Specify background origin: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-7

    [66]

    Use background clip: https://www.bitdegree.org/learn/best-code-editor/css3-backgrounds-example-8

    [67]

    Apply the linear gradient for your background without specifying direction: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-1

    [68]

    Apply the linear gradient for your background from left to right: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-2

    [69]

    Diagonal linear gradient from top left to bottom right: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-3

    [70]

    Linear gradient with a defined angle: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-4

    [71]

    Create the linear gradient background with multiple colors (default direction): https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-5

    [72]

    Create the linear gradient background with multiple colors from left to right: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-6

    [73]

    Linear gradient (left-right) with changing transparency: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-7

    [74]

    Create repeating linear gradient: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-8

    [75]

    Apply the radial gradient with evenly spaced color stops: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-9

    [76]

    Apply the radial gradient with differently spaced color stops: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-10

    [77]

    Set a circle shaped radial gradient: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-11

    [78]

    Manipulate radial gradient size parameters: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-12

    [79]

    Use a repeating radial gradient: https://www.bitdegree.org/learn/best-code-editor/css3-gradients-example-13

    [80]

    borders: https://www.bitdegree.org/learn/css-border

    [81]

    Set unique CSS border style to each element: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-8

    [82]

    Apply different CSS border style to individual walls: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-1

    [83]

    Specify CSS border width: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-2

    [84]

    Define CSS border color using different color value indicators: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-3

    [85]

    Use border-radius to create rounded borders: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-4

    [86]

    Assign individual styles to each wall of a CSS border: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-5

    [87]

    Use shorthand to define border-width, border-color, and border-style: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-6

    [88]

    Apply style to a single CSS border wall using the shorthand property: https://www.bitdegree.org/learn/best-code-editor/css-borders-example-7

    [89]

    Use an image as a CSS border by stretching it: https://www.bitdegree.org/learn/best-code-editor/css3-border-images-example-1

    [90]

    Use an image as a CSS border by repeating it: https://www.bitdegree.org/learn/best-code-editor/css3-border-images-example-2

    [91]

    Use different slice values to create different borders from the same image: https://www.bitdegree.org/learn/best-code-editor/css3-border-images-example-3

    [92]

    margin: https://www.bitdegree.org/learn/margin-css

    [93]

    Determine four different CSS margin values: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-6

    [94]

    Determine three CSS margin values: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-7

    [95]

    Determine only two CSS margin values: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-8

    [96]

    Define just one value for all margins to be equal: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-9

    [97]

    Specify all individual CSS margin values separately: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-1

    [98]

    Use auto value for CSS margin: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-3

    [99]

    Set CSS margin to inherit its value: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-4

    [100]

    Collapse vertical margins: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-5

    [101]

    padding: https://www.bitdegree.org/learn/css-padding

    [102]

    Determine all four CSS padding values in one declaration: https://www.bitdegree.org/learn/best-code-editor/css-padding-property-example-1

    [103]

    Specify CSS padding-top value individually: https://www.bitdegree.org/learn/best-code-editor/css-padding-property-padding-top-example

    [104]

    Specify CSS padding-right value individually: https://www.bitdegree.org/learn/best-code-editor/css-padding-property-padding-right-example

    [105]

    Specify CSS padding-left value individually: https://www.bitdegree.org/learn/best-code-editor/css-padding-property-padding-left-example

    [106]

    Specify CSS padding-bottom value individually: https://www.bitdegree.org/learn/best-code-editor/css-padding-property-padding-bottom-example

    [107]

    Use box-sizing: border-box to avoid width and padding conflict: https://www.bitdegree.org/learn/best-code-editor/css-padding-property-padding-and-width-conflict-example

    [108]

    height and width: https://www.bitdegree.org/learn/css-height

    [109]

    Set height and width of an element using px: https://www.bitdegree.org/learn/best-code-editor/css-height-and-width-dimensions-example-1

    [110]

    Set height and width of an element using %: https://www.bitdegree.org/learn/best-code-editor/css-height-and-width-dimensions-example-3

    [111]

    Specify a max-width value of an element: https://www.bitdegree.org/learn/best-code-editor/css-height-and-width-dimensions-example-2

    [112]

    Center an element using width and margin: auto: https://www.bitdegree.org/learn/best-code-editor/css-margins-example-3-0j

    [113]

    Understand difference between width and max-width: https://www.bitdegree.org/learn/best-code-editor/css-layout-width-and-max-width-example-1

    [114]

    box model: https://www.bitdegree.org/learn/css-box-model

    [115]

    Set all CSS properties that make up CSS box model: https://www.bitdegree.org/learn/best-code-editor/css-box-model-example-1

    [116]

    Compare elements with and without padding: https://www.bitdegree.org/learn/best-code-editor/css3-box-sizing-example-1

    [117]

    Add box-sizing: border-box to manage dimensions of certain elements: https://www.bitdegree.org/learn/best-code-editor/css3-box-sizing-example-2

    [118]

    Apply box-sizing: border-box to all elements at once: https://www.bitdegree.org/learn/best-code-editor/css3-box-sizing-example-3

    [119]

    Create an element with resizable width: https://www.bitdegree.org/learn/best-code-editor/css3-user-interface-example-1

    [120]

    Create an element with resizable height: https://www.bitdegree.org/learn/best-code-editor/css3-user-interface-example-2

    [121]

    Create an element with resizable width and height: https://www.bitdegree.org/learn/best-code-editor/css3-user-interface-example-3

    [122]

    Disable resizing on elements that are resizable by default: https://www.bitdegree.org/learn/best-code-editor/css3-user-interface-example-5

    [123]

    outline: https://www.bitdegree.org/learn/css-outline

    [124]

    Set different outline-style values: https://www.bitdegree.org/learn/best-code-editor/css-outline-example-1

    [125]

    Specify outline color using a color keyword value: https://www.bitdegree.org/learn/best-code-editor/css-outline-example-2

    [126]

    Specify outline width using a size in px or a predefined keyword value: https://www.bitdegree.org/learn/best-code-editor/css-outline-example-3

    [127]

    Set outline offset property to create space between border and outline: https://www.bitdegree.org/learn/best-code-editor/css-outline-example-offset

    [128]

    Use outline shorthand for outline-width, outline-style, and outline-color: https://www.bitdegree.org/learn/best-code-editor/css-outline-example-4

    [129]

    text: https://www.bitdegree.org/learn/css-text

    [130]

    Specify the color of your text using color keyword name and HEX indicator: https://www.bitdegree.org/learn/best-code-editor/css-text-example-1

    [131]

    Align text left, center, right or justified: https://www.bitdegree.org/learn/best-code-editor/css-text-example-2

    [132]

    Try all types of text decoration: https://www.bitdegree.org/learn/best-code-editor/css-text-example-3

    [133]

    Use text-transform to set all uppercase, lowercase or capitalized characters: https://www.bitdegree.org/learn/best-code-editor/css-text-example-4

    [134]

    Specify the indentation of your text: https://www.bitdegree.org/learn/best-code-editor/css-text-example-5

    [135]

    Use custom letter spacing to make your words more spacious out or compact: https://www.bitdegree.org/learn/best-code-editor/css-text-example-6

    [136]

    Use word spacing to make your text more spacious or compact: https://www.bitdegree.org/learn/best-code-editor/css-text-example-9

    [137]

    Adjust line height to create more space between lines: https://www.bitdegree.org/learn/best-code-editor/css-text-example-7

    [138]

    Set text direction right to left: https://www.bitdegree.org/learn/best-code-editor/css-text-example-8

    [139]

    Define shadow radius and color for your text: https://www.bitdegree.org/learn/best-code-editor/css-text-example-10

    [140]

    Specify how text overflow (text that doesn’t fit) is displayed: https://www.bitdegree.org/learn/best-code-editor/css3-text-example-1

    [141]

    Display full overflow text when hovered on: https://www.bitdegree.org/learn/best-code-editor/css3-text-example-2

    [142]

    Make long text wrap when it doesn’t fit in a line: https://www.bitdegree.org/learn/best-code-editor/css3-text-example-3

    [143]

    Use word-break to break-all or keep-all words: https://www.bitdegree.org/learn/best-code-editor/css3-text-example-4

    [144]

    Add multiple shadows to your text separated by commas: https://www.bitdegree.org/learn/best-code-editor/css3-shadow-effects-example-1

    [145]

    fonts: https://www.bitdegree.org/learn/css-font

    [146]

    Specify font family for your text: https://www.bitdegree.org/learn/best-code-editor/css-fonts-example-1

    [147]

    Specify font style for your text: https://www.bitdegree.org/learn/best-code-editor/css-fonts-example-2

    [148]

    Define font size using predefined keywords, percentage or length indicators: https://www.bitdegree.org/learn/best-code-editor/css-fonts-example-3

    [149]

    Specify font weight to create bold effect: https://www.bitdegree.org/learn/best-code-editor/css-fonts-example-4

    [150]

    Use font variant to make characters appear as small caps: https://www.bitdegree.org/learn/best-code-editor/css-fonts-example-5

    [151]

    Use @font-face rule to apply non-CSS font family fonts: https://www.bitdegree.org/learn/best-code-editor/css3-web-fonts-example-1

    [152]

    Use font-weight with @font-face rule: https://www.bitdegree.org/learn/best-code-editor/css3-web-fonts-example-2

    [153]

    links: https://www.bitdegree.org/learn/css-link-color

    [154]

    Set a color for your link: https://www.bitdegree.org/learn/best-code-editor/css-links-example-1

    [155]

    Set different colors for different states of links: https://www.bitdegree.org/learn/best-code-editor/css-links-example-3

    [156]

    Specify custom link background colors for different states: https://www.bitdegree.org/learn/best-code-editor/css-links-example-4

    [157]

    Make your link a CSS button: https://www.bitdegree.org/learn/best-code-editor/css-links-example-5

    [158]

    lists: https://www.bitdegree.org/learn/css-list-style

    [159]

    Specify item markers for lists: https://www.bitdegree.org/learn/best-code-editor/css-lists-example-1

    [160]

    Use images for item markers of lists: https://www.bitdegree.org/learn/best-code-editor/css-lists-example-2

    [161]

    Define item marker position outside the list: https://www.bitdegree.org/learn/best-code-editor/css-lists-example-3

    [162]

    Use list-style shorthand to set type, position and image: https://www.bitdegree.org/learn/best-code-editor/css-lists-example-4

    [163]

    Set various color and layout styles to your lists: https://www.bitdegree.org/learn/best-code-editor/css-lists-example-5

    [164]

    Create lists with background and borders: https://www.bitdegree.org/learn/best-code-editor/css-lists-example-6

    [165]

    Create a bordered list without item markers: https://www.bitdegree.org/learn/best-code-editor/css-lists-example-7

    [166]

    tables: https://www.bitdegree.org/learn/css-table

    [167]

    Specify border width, color and style for a table: https://www.bitdegree.org/learn/best-code-editor/css-table-example-1

    [168]

    Collapse table borders: https://www.bitdegree.org/learn/best-code-editor/css-table-example-2

    [169]

    Use border spacing on uncollapsed borders: https://www.bitdegree.org/learn/best-code-editor/css-table-example-3

    [170]

    Create a caption text for the table: https://www.bitdegree.org/learn/best-code-editor/css-table-example-4

    [171]

    Add empty cells in a table: https://www.bitdegree.org/learn/best-code-editor/css-table-example-5

    [172]

    Define auto, fixed or initial table layout: https://www.bitdegree.org/learn/best-code-editor/css-table-example-6

    [173]

    Set specific table width and height: https://www.bitdegree.org/learn/best-code-editor/css-table-width-height-example

    [174]

    Specify text alignment in a table: https://www.bitdegree.org/learn/best-code-editor/css-table-text-align-example-1

    [175]

    Specify vertical content alignment in a table: https://www.bitdegree.org/learn/best-code-editor/css-table-vertical-align-example

    [176]

    Set padding for your table content: https://www.bitdegree.org/learn/best-code-editor/css-table-padding-example

    [177]

    Set only horizontal borders for a table: https://www.bitdegree.org/learn/best-code-editor/css-table-horizontal-borders-example

    [178]

    Create table cells with a hover effect: https://www.bitdegree.org/learn/best-code-editor/css-table-mouse-over-example

    [179]

    Specify table colors: https://www.bitdegree.org/learn/best-code-editor/css-table-colors-example

    [180]

    Create a zebra-striped table design: https://www.bitdegree.org/learn/best-code-editor/css-table-zebra-striped-design-example

    [181]

    display: https://www.bitdegree.org/learn/css-display

    [182]

    Override the default display value to inline: https://www.bitdegree.org/learn/best-code-editor/css-layout-the-display-property-example-1

    [183]

    Override the default display value to block: https://www.bitdegree.org/learn/best-code-editor/css-layout-the-display-property-example-2

    [184]

    Hide an element using display: none: https://www.bitdegree.org/learn/best-code-editor/css-layout-the-display-property-example-3

    [185]

    Hide an element using visibility: hidden: https://www.bitdegree.org/learn/best-code-editor/css-layout-the-display-property-example-4

    [186]

    position: https://www.bitdegree.org/learn/css-position

    [187]

    Set static position for an element: https://www.bitdegree.org/learn/best-code-editor/css-position-property-example-1

    [188]

    Set relative position for an element: https://www.bitdegree.org/learn/best-code-editor/css-position-property-example-2

    [189]

    Set fixed position for an element: https://www.bitdegree.org/learn/best-code-editor/css-position-property-example-3

    [190]

    Set absolute position for an element: https://www.bitdegree.org/learn/best-code-editor/css-position-property-example-4

    [191]

    text overflowing: https://www.bitdegree.org/learn/css-text

    [192]

    Set overflow text to ellipsis: https://www.bitdegree.org/learn/best-code-editor/css3-text-overflow-property-example-1

    [193]

    Show overflown text when hovered on: https://www.bitdegree.org/learn/best-code-editor/css3-text-overflow-property-example-2

    [194]

    Set overflow-y to hidden: https://www.bitdegree.org/learn/best-code-editor/css3-overflow-y-property-example-1

    [195]

    Set overflow-x to hidden: https://www.bitdegree.org/learn/best-code-editor/css3-overflow-x-property-example-1

    [196]

    float: https://www.bitdegree.org/learn/css-float

    [197]

    Float an element to the left: https://www.bitdegree.org/learn/best-code-editor/css-float-example-1

    [198]

    Float an element to the right: https://www.bitdegree.org/learn/best-code-editor/css-float-example-12

    [199]

    Use float: none to keep an element in its original place: https://www.bitdegree.org/learn/best-code-editor/css-float-example-13

    [200]

    Use clear to determine where elements shouldn’t float: https://www.bitdegree.org/learn/best-code-editor/css-float-example-2

    [201]

    Use overflow: auto to fix issues with overflow: https://www.bitdegree.org/learn/best-code-editor/css-layout-horizontal-align-example-4

    [202]

    inline-block: https://www.bitdegree.org/learn/css-display

    [203]

    Setting CSS display: inline block and setting width and height: https://www.bitdegree.org/learn/best-code-editor/css-display-example-5

    [204]

    Another basic use of CSS display: inline-block: https://www.bitdegree.org/learn/best-code-editor/css-layout-inline-block-example-2

    [205]

    alignment: https://www.bitdegree.org/learn/css-align

    [206]

    Center vertically with position and transform: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-10

    [207]

    Center vertically with line-height: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-9

    [208]

    Center vertically and horizontally using padding: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-8

    [209]

    Center vertically with padding: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-7

    [210]

    Fix image overflow with clearfix: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-6

    [211]

    Align an element to the left with float: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-5

    [212]

    Align an element to the left with position: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-4

    [213]

    Center an image my using auto margin on a block element: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-3

    [214]

    Center text using text-align: https://www.bitdegree.org/learn/best-code-editor/css-layout-align-2

    [215]

    Center an element inside a container with margin: https://www.bitdegree.org/learn/best-code-editor/css-layout-align

    [216]

    combinators: https://www.bitdegree.org/learn/css-child-selector

    [217]

    Select only direct child elements: https://www.bitdegree.org/learn/best-code-editor/css-combinators-example-2

    [218]

    Select all descending elements: https://www.bitdegree.org/learn/best-code-editor/css-combinators-example-1

    [219]

    Select all the sibling elements: https://www.bitdegree.org/learn/best-code-editor/css-combinators-example-4

    [220]

    Select only adjacent sibling elements: https://www.bitdegree.org/learn/best-code-editor/css-combinators-example-3

    [221]

    pseudo classes: https://www.bitdegree.org/learn/css-pseudo-classes

    [222]

    Set different link states using pseudo classes: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-classes-example-2

    [223]

    Change element color upon CSS hover with pseudo classes: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-classes-example-3

    [224]

    Change background color upon CSS hover with pseudo classes: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-classes-example-4

    [225]

    Match pseudo class to the first child element: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-classes-example-5

    [226]

    Match pseudo class to every first child element: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-classes-example-6

    [227]

    Match pseudo class to all specified elements in all first child elements: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-classes-example-7

    [228]

    Define special rules for different languages using pseudo class :lang: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-classes-example-8

    [229]

    pseudo-elements: https://www.bitdegree.org/learn/css-pseudo-elements

    [230]

    Set style for the first line: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-elements-example-2

    [231]

    Set style for the first letter: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-elements-example-3

    [232]

    Insert specific content before an element: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-elements-example-6

    [233]

    Insert specific content after an element: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-elements-example-7

    [234]

    Style a specified portion of an element: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-elements-example-8

    [235]

    Combine multiple pseudo elements in one document: https://www.bitdegree.org/learn/best-code-editor/css-pseudo-elements-example-5

    [236]

    opacity: https://www.bitdegree.org/learn/css-opacity

    [237]

    Specify opacity to make an image transparent: https://www.bitdegree.org/learn/best-code-editor/css-image-opacity-transparency-property-example-1

    [238]

    Apply opacity settings upon hover: https://www.bitdegree.org/learn/best-code-editor/css-image-opacity-transparency-property-example-2

    [239]

    Create transparent box: https://www.bitdegree.org/learn/best-code-editor/css-image-opacity-transparent-box-example

    [240]

    Specify transparency with RGBA: https://www.bitdegree.org/learn/best-code-editor/css-image-opacity-transparency-using-rgba-example

    [241]

    Manipulate text in a transparency box: https://www.bitdegree.org/learn/best-code-editor/css-image-opacity-transparency-property-example-3

    [242]

    navigation bars: https://www.bitdegree.org/learn/css-navigation-bar

    [243]

    Build a navigation bar from HTML links: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-1

    [244]

    Remove default browser settings from your navigation bar: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-2

    [245]

    Specify text and background colors for hover effect: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-4

    [246]

    Create basic vertical navigation bar: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-5

    [247]

    Specify the style for your active navigation links: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-13

    [248]

    Add borders and alignment to your navigation list: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-7

    [249]

    Create a fixed vertical navbar: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-8

    [250]

    Create a horizontal navigation bar: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-9

    [251]

    Create a horizontal navigation bar using float: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-10

    [252]

    Create a horizontal navbar with a changing color upon hover: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-12

    [253]

    Add a class to inform users about selected navigation item: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-5

    [254]

    Align navigation links to the right: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-14

    [255]

    Create a navbar with individual dividers: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-15

    [256]

    Create a fixed top horizontal navbar using position: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-fixed-top-example-16

    [257]

    Create a fixed bottom horizontal navbar using position: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-fixed-bottom-example-17

    [258]

    Create a fully functioning navigation bar: https://www.bitdegree.org/learn/best-code-editor/css-navigation-bar-example-18

    [259]

    dropdown menus: https://www.bitdegree.org/learn/css-dropdown-menu

    [260]

    Create a basic dropdown menu: https://www.bitdegree.org/learn/best-code-editor/css-dropdowns-example-1

    [261]

    Create a dropdown menu with links: https://www.bitdegree.org/learn/best-code-editor/css-dropdowns-example-2

    [262]

    Align your dropdown menu to the right: https://www.bitdegree.org/learn/best-code-editor/css-dropdowns-example-3

    [263]

    images as galleries: https://www.bitdegree.org/learn/css-image-gallery

    [264]

    image sprites: https://www.bitdegree.org/learn/css-images

    [265]

    Create an image gallery using CSS styling properties: https://www.bitdegree.org/learn/best-code-editor/css-image-gallery-example-1

    [266]

    Define a part of image to display: https://www.bitdegree.org/learn/best-code-editor/css-image-sprites-example-1

    [267]

    Make a navigation bar using image sprite: https://www.bitdegree.org/learn/best-code-editor/css-image-sprites-example-2

    [268]

    Use image sprites with hover effect: https://www.bitdegree.org/learn/best-code-editor/css-image-sprites-example-3

    [269]

    Set image width to 100%: https://www.bitdegree.org/learn/best-code-editor/responsive-css-background-images

    [270]

    Set image max-width to 100%: https://www.bitdegree.org/learn/best-code-editor/responsive-css-background-images-2

    [271]

    Keep aspect ratio: contain background-size: https://www.bitdegree.org/learn/best-code-editor/responsive-web-design-images-example-4

    [272]

    Specify background-size to stretch and fill: https://www.bitdegree.org/learn/best-code-editor/responsive-web-design-images-example-5

    [273]

    Set background image to cover the area & keep aspect ratio: https://www.bitdegree.org/learn/best-code-editor/responsive-web-design-images-example-6

    [274]

    Display different images depending on screen size: https://www.bitdegree.org/learn/best-code-editor/responsive-css-background-images-4

    [275]

    Use @media rule to make images responsive: https://www.bitdegree.org/learn/best-code-editor/responsive-css-background-images-5

    [276]

    Use HTML5element: https://www.bitdegree.org/learn/best-code-editor/responsive-css-background-images-6

    [277]

    attributes: https://www.bitdegree.org/learn/css-attribute-selector

    [278]

    Select all elements with specified attribute: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-1

    [279]

    Select elements with specified attribute & value: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-2

    [280]

    Select elements with specified value regardless of its placement: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-3

    [281]

    Select elements that start with a specified value: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-4

    [282]

    Select elements that start with a specified value describing just part of it: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-5

    [283]

    Select elements that end with a specified value: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-6

    [284]

    Select elements with a specified value anywhere in the attribute: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-7

    [285]

    Apply styling properties using CSS selector: https://www.bitdegree.org/learn/best-code-editor/css-attribute-selectors-example-8

    [286]

    forms: https://www.bitdegree.org/learn/css-form

    [287]

    Select all input elements: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-1

    [288]

    Use padding to create space around input field: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-2

    [289]

    Add and style a border for a CSS form: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-3

    [290]

    Add only a bottom border for a CSS form: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-4

    [291]

    Specify a background color for your input field: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-5

    [292]

    Specify a background color for a focused input: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-6

    [293]

    Specify a border style for a focused input: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-7

    [294]

    Add an icon to your input field: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-8

    [295]

    Create an animated stretching input field: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-9

    [296]

    Style a text area: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-10

    [297]

    Style a dropdown menu: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-11

    [298]

    Style input buttons: https://www.bitdegree.org/learn/best-code-editor/css-forms-example-12

    [299]

    counters: https://www.bitdegree.org/learn/css-variables

    [300]

    Create a simple list with CSS counters: https://www.bitdegree.org/learn/best-code-editor/css-counters-example-1

    [301]

    Make a table of contents using CSS counters: https://www.bitdegree.org/learn/best-code-editor/css-counters-example-2

    [302]

    Create an outlined list with CSS counters: https://www.bitdegree.org/learn/best-code-editor/css-counters-example-3

    [303]

    website layout: https://www.bitdegree.org/learn/css-columns

    [304]

    Build a responsive website layout using CSS columns: https://www.bitdegree.org/learn/best-code-editor/css-grid-view-7

    [305]

    Create a flexible website layout using flex properties: https://www.bitdegree.org/learn/best-code-editor/css-flexbox-layout-2

    [306]

    transform: https://www.bitdegree.org/learn/transform-css

    [307]

    Rotate an element around its horizontal axis: https://www.bitdegree.org/learn/best-code-editor/css3-3d-transforms-example-1

    [308]

    Rotate an element around its vertical axis: https://www.bitdegree.org/learn/best-code-editor/css3-3d-transforms-example-2

    [309]

    Rotate an element around its depth axis: https://www.bitdegree.org/learn/best-code-editor/css3-3d-transforms-example-3

    [310]

    transitions: https://www.bitdegree.org/learn/css-transition

    [311]

    Create a width transition effect upon hover: https://www.bitdegree.org/learn/best-code-editor/css3-transitions-example-2

    [312]

    Create a transition with width and height properties: https://www.bitdegree.org/learn/best-code-editor/css3-transitions-example-3

    [313]

    Specify different speed curves for your transition: https://www.bitdegree.org/learn/best-code-editor/css3-transitions-example-4

    [314]

    Create a transition with delay effect: https://www.bitdegree.org/learn/best-code-editor/css3-transitions-example-5

    [315]

    Create a transition with transform and set its duration: https://www.bitdegree.org/learn/best-code-editor/css3-transitions-example-6

    [316]

    Specify individual transition properties in separate declarations: https://www.bitdegree.org/learn/best-code-editor/css3-transitions-example-7

    [317]

    Specify all transition properties in a single declaration: https://www.bitdegree.org/learn/best-code-editor/css3-transitions-example-8

    [318]

    animations: https://www.bitdegree.org/learn/css-animation

    [319]

    Assign animation rule to an element: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-1

    [320]

    Set changes using percentages for a smoother animation effect: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-2

    [321]

    Change animation position using percentage: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-3

    [322]

    Create fade in animation: https://www.bitdegree.org/learn/best-code-editor/css-animations-1

    [323]

    Specify animation delay: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-4

    [324]

    Set animation to repeat: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-5

    [325]

    Set an infinite animation: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-6

    [326]

    Run animation in reverse: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-7

    [327]

    Run animation forwards then backwards: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-8

    [328]

    Run animation backwards then forwards: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-12

    [329]

    Specify an animation speed curve: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-9

    [330]

    Set animation fill mode forwards: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-13

    [331]

    Set animation fill mode backwards: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-14

    [332]

    Set animation fill mode forwards and backwards: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-15

    [333]

    Use six major animation properties: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-10

    [334]

    Use animation shorthand property: https://www.bitdegree.org/learn/best-code-editor/css3-animations-example-11

    [335]

    tooltips: https://www.bitdegree.org/learn/css-tooltip

    [336]

    Create a basic tooltip: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-example-1

    [337]

    Create a tooltip on the right: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-right-tooltip-2

    [338]

    Create a tooltip on the left: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-left-tooltip-3

    [339]

    Create a tooltip above an element: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-top-tooltip-4

    [340]

    Create a tooltip below an element: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-bottom-tooltip-5

    [341]

    Create a tooltip with a bottom arrow: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-bottom-arrow-6

    [342]

    Create a tooltip with a top arrow: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-top-arrow-7

    [343]

    Create a tooltip with a left arrow: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-left-arrow-8

    [344]

    Create a tooltip with a right arrow: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-right-arrow-9

    [345]

    Create a tooltip with a fade in effect: https://www.bitdegree.org/learn/best-code-editor/css-tooltip-example-10

    [346]

    buttons: https://www.bitdegree.org/learn/css-button

    [347]

    Assign colors to buttons: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-2

    [348]

    Define text size for buttons: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-3

    [349]

    Specify padding for buttons: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-15-AV

    [350]

    Make your button corners rounded: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-4

    [351]

    Add different color borders to your buttons: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-5

    [352]

    Create a button with hover effect: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-6

    [353]

    Create buttons with a shadow: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-7

    [354]

    Make a button appear inactive: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-8

    [355]

    Define width of the button: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-9

    [356]

    Align several buttons together using float: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-10

    [357]

    Add borders to grouped buttons: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-11

    [358]

    Create a vertical button group: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-15

    [359]

    Add a button on an image using position: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-16

    [360]

    Create a button with an arrow animation: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-12

    [361]

    Create a pressed button effect: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-13

    [362]

    Create a fade in button: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-17

    [363]

    Create a button with a ripple effect: https://www.bitdegree.org/learn/best-code-editor/css-buttons-example-14

    [364]

    pagination: https://www.bitdegree.org/learn/pagination-examples

    [365]

    Create a simple pagination style: https://www.bitdegree.org/learn/best-code-editor/css-pagination-examples-example-1

    [366]

    Assign hover and active effects on your pagination list: https://www.bitdegree.org/learn/best-code-editor/css-pagination-examples-

    开学的总体规划

    2018学习前端,争取到暑假完成的进度,非计算机专业,

    2月、3月

    学习原生JavaScript,将百度前端学院、慕课网上的题目做完,同时记录好相关的笔记,完成demo

    书籍:javascript高级程序设计、js语言精粹、javascriptDOM操作

    4月

    系统学习HTML5和css3,之前没有系统深入的学习,还有css的预处理,sass和less等等,完成demo

    书籍:css权威指南、精通css,web高标准之道 

    5月

    学习JQuery,将JQuery与js原生相比较,完成demo

    6月

    不知道学校有什么安排,没有安排找一份前端实习,到公司实战;

    有安排的话暑假又要被耽误,只能慢慢熬吧,没用的可就不去了,

    暑假学习ajax技术,了解http协议,先了解一些PHP,再集中学习python

    如果作为是计算机专业,这些肯定是可以的,但是本专业的课程也是挺多的,唉,不管怎么说,争取完成任务

     

    以上是关于系统性学习 CSS 指南及全 DEMO 练习的主要内容,如果未能解决你的问题,请参考以下文章

    开学的总体规划

    通过案例 详解点击事件获取li的index,并切换对应的图片,排他思想,闭包,bind,let,jquery简单应用,简单的tab栏制作-初学者html+css+js练习demo

    JS学习指南

    CTF学习路线指南(附刷题练习网址)

    Jqueryjquery刷新页面(局部及全页面刷新)

    jquery刷新页面的实现代码(局部及全页面刷新)