📂
CS-NoteBook
  • Introduction
  • CS144
    • concise introduction to Internet
      • 1.1 Networked Applications
      • 1.2 The 4 Layer Internet
      • 1.3 IP
      • 1.4 A Day in the Life of a Packet
      • 1.5 Principle: Packet Switching
      • 1.6 Principle:Layering
      • 1.7 Principle: Encapsulation
      • 1.8 Byte order and packet formats
      • 1.9 name and addresses:IPv4
      • 1.10 Longest Prefix Match for Link Layer
      • 1.11 Address Resolution Protocol(ARP)
      • 1.12 Summary
    • Transport Layer
      • 2.1 The TCP Service Model
      • 2.2 UDP service model
      • 2.3 ICMP(Internet Control Message Protocol 互联网报文控制协议)
      • 2.4 The End-to-End Principle
      • 2.5 Error Detection:3 schemes (Checksum,CRC and MAC)
      • 2.6 Finite State Machines(有限状态机)
      • 2.7 Flow Control
      • 2.8 Sliding window
      • 2.9 Retransmission Strategies
      • 2.10 TCP Header
      • 2.11 TCP Setup and Teardown
      • 2.12 Recap
    • Package Switching
      • 3.1 The history of Internet
      • 3.2 What is packet switching
      • [3.3 End-to-end delay and Queueing delay
      • 3.4 Playback Buffer(回放缓存区)
  • CS 61C
    • 1.4 C Memory Mangement, Usage
    • 1.5 Intro to Assembly Language, MIPS Intro
    • 1.5 extra bits operation
  • CS 61B
  • CS 61A
    • Function
    • Names
    • The Art of the Function
    • Control
    • Higher-Order Function
    • Recursive Function
    • List
    • Non-Local Assignment
    • Iterators
    • Objects
    • Data Abstraction
    • OOP
    • Inheritance
    • Representations
    • Decomposition
    • Scheme
    • Exceptions
    • Calculator
    • Interpreters
    • Declarative_Programming
    • Table
    • Aggregation
      • More_recursion
    • Databases
    • Distributed_Data
    • Tail Recursion
    • Exercises
      • lab00
      • lab01
      • hw01
      • tree Recursion example -- give Change
  • The Web DevelopMent Bootcamp
    • html5
    • css
    • bootstrap3
    • bootstrap4
    • javascript expression
    • javascript function
Powered by GitBook
On this page
  • font color
  • background color
  • border
  • selector
  • font styles
  • Box Model
  • hover
  • transition
  • display

Was this helpful?

  1. The Web DevelopMent Bootcamp

css

font color

h1 {
    /* font color */
    color: black;
    color: rgb(143, 88, 88);
    color: rgba(117, 39, 39,0.8);
}

background color

/* background color */
body {
    background:blue;
    background: url(http://);
    background-repeat: no-repeat;
    background-size: cover;
}
div {
    background: blue;
}
p {
    color: blue;
}

border

h1 {
    border-color: purple;
    border-width: 5px;
    border-style: solid;
    /* the same */
    border: purple 5px solid;
    /*圆角*/
    border-radius: 15%;

    /*从左开始依次排开*/
    float: left;

}

selector

/* element selector */
li {
}
/* id selector */
#special {
}
/* class selector */
.completed {
}
/* Star */
* {
}
/* Descendant Selector */
li a{ 
}
/* Adjacent Selector */
h4 + ul {
}
/* Attribute Selector */
a[href="http://"] {
}
/* nth of type */
li:nth-of-type(3) {
}

font styles

p {
    font-family: Arial;/* 字体 */
    font-size: 200px;
    font-weight: 200;/* 100-800  */
    font-weight: bold; /* 加粗 */
    line-height: 2; /* 两倍行距 */
    text-decoration: underline; /* 下划线 */
    text-transform: uppercase; /* 变大写字体 */
    letter-spacing: 0.2rem; /* 根据网页root element */
}
span {
    font-size: 2.0em; /* 根据parent element */
}0em;
}

Box Model

p {
    width: 200px; /* 边框 */
    height: 10%; /* 边框 */
    max-width: 300px; /* 边框 */
    border: 2px solid blue; /* 边框 */
    padding: auto; /* 边框内边距 */
    margin: 200px 300px 500px 300px; /* 边框外边距 上右下左 */
}

img {
    float: left; 
    /* float CSS属性指定一个元素应沿其容器的左侧或右侧放置,允许文本和内联元素环绕它。该元素从网页的正常流动(文档流)中移除,尽管仍然保持部分的流动性(与绝对定位相反)。
 */
}

hover

#mainNavbar .nav-link:hover {
    color: #EA1C2C;
}

hover: (盘旋)鼠标指向的时候颜色发生变化

transition

渐变

button {
    /*渐变色*/
    transition: all 0.3s;
    /*Safari 浏览器*/
    -webkit-transition: all 0.3s;
    /*firefox 浏览器*/
    -moz-transition: all 0.3s;
}

display

/*元素具有宽度高度特性,又具有同行特性*/
#message {
    width: 20%;
    display: inline-block;
}
Previoushtml5Nextbootstrap3

Last updated 5 years ago

Was this helpful?