1  背景相关

  背景颜色      background-color         =  颜色名称/rgb值/十六进制值

  背景图片      background-image      =  url('')

  背景图片平铺方式  background-repeat       =  repeat-x(仅水平平铺)  repeat-y(仅垂直平铺)  no-repeat(不平铺)

  设置背景图片位置  background-position     =  数字+单位/center/top/bottom/left/right   同上。  例如:50px 50px

  背景图片是否滚动  background-attachment    =  fixed(不滚动)   scroll(滚动)

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>first page</title>
  6. <style>
  7.  
  8. body{
  9. background-color: aliceblue;
  10. background-image: url('l.jpg');
  11. background-repeat: no-repeat;
  12. background-position: right top;
  13. background-attachment: fixed;
  14. }
  15.  
  16. </style>
  17. </head>
  18. <body>
  19. <h1 >hello world</h1>
  20. <p >this paragra is only used for test</p>
  21.  
  22. <br>
  23. <p>hello world</p>
  24. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  25. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  26. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  27. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  28. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  29.  
  30. </body>
  31. </html>

2  文本相关

  文本颜色:  color       =  颜色名称/rgb值/十六进制值

  文本对齐方式:text-align           =  center(居中)   right(右对齐)   justify(两端对齐)

    通过使用text-align:center;  可以将该元素中的 行内元素 居中显示,也就是图片字体都可以居中显示。

  文本加工:  text-decoration      =  underline(下划线)

  文本缩进:  text-indent      =  十进制值+单位。例如:50px

  文本大小写: text-transform       =  uppercase(大写)   lowercase(小写)  capitalize(首字母大写)

  文本阴影:  text-shadow     =  num1(左右)  num2(上下)  num3(粗细)  color

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>first page</title>
  6. <style>
  7. .first{
  8. color:red;
  9. text-align: center;
  10. text-transform: uppercase;
  11. text-decoration: none;
  12. }
  13. #sencend{
  14. color:green;
  15. text-transform: capitalize;
  16. text-align: right;
  17. text-decoration: underline;
  18. text-indent: 50px;
  19. }
  20. .third{
  21. color:yellow;
  22. text-indent: 100px;
  23. }
  24.  
  25. </style>
  26. </head>
  27. <body>
  28. <h1 class="first">hello world</h1>
  29. <p id="sencend">this paragra is only used for test</p>
  30. <p class="third">this paragra is only used for test</p>
  31. <p>this paragra is only used for test</p>
  32.  
  33. </body>
  34. </html>

所有文本属性:

3  字体相关

字体系列    font-family    属性应该设置几个字体名称作为一种"后备"机制,如果浏览器不支持第一种字体,他将尝试下一种字体。注意: 如果字                 体系列的名称超过一个字,它必须用引号,如Font Family:"宋体"。多个字体系列是用一个逗号分隔指明:

字体样式    font-style  =  normal(正常)  italic(斜体)  oblique (粗体)

字体大小    font-size   =  数字+单位

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>first page</title>
  6. <style>
  7.  
  8. body{
  9. font-family: Sans-serif,Monospace;
  10. font-style: italic;
  11. font-size: 16px;
  12. }
  13.  
  14. </style>
  15. </head>
  16. <body>
  17. <h1 >hello world</h1>
  18. <p >this paragra is only used for test</p>
  19.  
  20. <br>
  21. <p>hello world</p>
  22.  
  23. </body>
  24. </html>

4  链接

a:link {}          未访问过的链接
a:visited {}       已访问过的链接
a:hover {}      鼠标放在链接时
a:active {}      链接被点击时

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>first page</title>
  6. <style>
  7.  
  8. a:link{color:mediumvioletred;font-size: 16px;text-decoration: none}
  9. a:visited{color:blue;font-size:16px;text-decoration: none}
  10. a:hover{color:darkgreen;font-size:24px;text-decoration: underline;background-color: aquamarine;padding: 4px}
  11. a:active{color:darkgoldenrod;font-size: 44px;text-decoration: overline}
  12.  
  13. </style>
  14. </head>
  15. <body>
  16. <h1 >hello world</h1>
  17. <p >this paragra is only used for test</p>
  18. <a href="http://baidu.com" target="_blank">百度</a>
  19. <br>
  20. <p>hello world</p>
  21.  
  22. </body>
  23. </html>

5  列表

列表项样式    list-style-type    =  disc(默认实心圆)/circle(空心圆)/square(方块)/decimal(数字)……

列表项图片    list-style-image    =  url('')

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. ul.a {list-style-type:circle;}
  6. ul.b {list-style-type:square;}
  7. ol.c {list-style-type:upper-roman;}
  8. ol.d {list-style-type:lower-alpha;}
  9. </style>
  10. </head>
  11.  
  12. <body>
  13. <p>Examples of a and b:</p>
  14.  
  15. <ul class="a">
  16. <li>Coffee</li>
  17. <li>Tea</li>
  18. <li>Coca Cola</li>
  19. </ul>
  20.  
  21. <ul class="b">
  22. <li>Coffee</li>
  23. <li>Tea</li>
  24. <li>Coca Cola</li>
  25. </ul>
  26.  
  27. <p>Examples of c and d </p>
  28.  
  29. <ol class="c">
  30. <li>Coffee</li>
  31. <li>Tea</li>
  32. <li>Coca Cola</li>
  33. </ol>
  34.  
  35. <ol class="d">
  36. <li>Coffee</li>
  37. <li>Tea</li>
  38. <li>Coca Cola</li>
  39. </ol>
  40.  
  41. </body>
  42. </html>

6  表格

边框全面设置:    border    =    1px  solid(实线)  颜色   后两个属性可以省略

边框颜色:      border-color  =    颜色

边框样式:      border-style  =    solid(只记住这一个就可以了)

单独边框:      border-top  

           border-top-color

           border-top-style

           border-top-width

详情请看:http://www.w3school.com.cn/cssref/index.asp

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. #customers
  6. {
  7. font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
  8. width:100%;
  9. border-collapse:collapse;
  10. }
  11. #customers td, #customers th
  12. {
  13. font-size:1em;
  14. border:1px solid #98bf21;
  15. padding:3px 7px 2px 7px;
  16. }
  17. #customers th
  18. {
  19. font-size:1.1em;
  20. text-align:left;
  21. padding-top:5px;
  22. padding-bottom:4px;
  23. background-color:#A7C942;
  24. color:#ffffff;
  25. }
  26. #customers tr.alt td
  27. {
  28. color:#000000;
  29. background-color:#EAF2D3;
  30. }
  31. </style>
  32. </head>
  33.  
  34. <body>
  35. <table id="customers">
  36. <tr>
  37. <th>Company</th>
  38. <th>Contact</th>
  39. <th>Country</th>
  40. </tr>
  41. <tr>
  42. <td>Alfreds Futterkiste</td>
  43. <td>Maria Anders</td>
  44. <td>Germany</td>
  45. </tr>
  46. <tr class="alt">
  47. <td>Berglunds snabbköp</td>
  48. <td>Christina Berglund</td>
  49. <td>Sweden</td>
  50. </tr>
  51. <tr>
  52. <td>Centro comercial Moctezuma</td>
  53. <td>Francisco Chang</td>
  54. <td>Mexico</td>
  55. </tr>
  56. <tr class="alt">
  57. <td>Ernst Handel</td>
  58. <td>Roland Mendel</td>
  59. <td>Austria</td>
  60. </tr>
  61. <tr>
  62. <td>Island Trading</td>
  63. <td>Helen Bennett</td>
  64. <td>UK</td>
  65. </tr>
  66. <tr class="alt">
  67. <td>Königlich Essen</td>
  68. <td>Philip Cramer</td>
  69. <td>Germany</td>
  70. </tr>
  71. <tr>
  72. <td>Laughing Bacchus Winecellars</td>
  73. <td>Yoshi Tannamuri</td>
  74. <td>Canada</td>
  75. </tr>
  76. <tr class="alt">
  77. <td>Magazzini Alimentari Riuniti</td>
  78. <td>Giovanni Rovelli</td>
  79. <td>Italy</td>
  80. </tr>
  81. <tr>
  82. <td>North/South</td>
  83. <td>Simon Crowther</td>
  84. <td>UK</td>
  85. </tr>
  86. <tr class="alt">
  87. <td>Paris spécialités</td>
  88. <td>Marie Bertrand</td>
  89. <td>France</td>
  90. </tr>
  91. </table>
  92. </body>
  93. </html>

个性表格

7  轮廓

轮廓(outline)是绘制于元素周围的一条线,位于边框边缘的外围,可起到突出元素的作用。

可以对轮廓指定样式,颜色和外边框的宽度。

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. .b{
  7. outline:10px solid black;
  8. }
  9.  
  10. </style>
  11. </head>
  12.  
  13. <body>
  14.  
  15. <p><span class="b">hello world</span></p>
  16.  
  17. </body>
  18. </html>

轮廓演示

8  盒子模型

边框:

  -border: 2px solid red; 表示边框宽度(border-width)为2px,边框样式(border-style)为实线,边框颜色(border-color)为红色

  -其中常用的边框样式有:solid 实线   dashed 虚线   dotted 点线

  -可以单独设置上右下左边框:border-top/border-right/border-bottom/border-left

外边距 margin:

   -若margin后面跟一个数字,则表示上右下左外边距相同,且值为该数字;若margin后面跟两个数字,第一个表示垂直,第二个表示水平;若  margin后面跟4个数字,则按照 上 右 下 左 的顺序设置。

  -可以单独设置上右下左外边距:margin-top/margin-right/margin-bottom/margin-left

  -使用margin:0px auto;可以将 定宽块元素 设置为居中显示

内边距 padding:

  同上。

         

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5. .a{
  6. padding:10px;
  7. border:1px solid red;
  8. width:100px;
  9.  
  10. }
  11. p {
  12. margin:50px;
  13. width:200px
  14. }
  15.  
  16. </style>
  17. </head>
  18.  
  19. <body>
  20. <p class="a">hello world </p>
  21.  
  22. </body>
  23. </html>

9  尺寸

10  元素分类

html元素分为三类:

  块元素 block:如<div>、<p>、<h1>...<h6>、<ol>、<ul>、<dl>、<table>、<address>、<blockquote> 、<form>等。

    特点: 每个块级元素都从新的一行开始,其后的元素另起一行,也就是说,块级元素很霸道,要占一整行。

        块级元素可以设置 宽 高 行高 顶边距 和底边距

        元素宽度在不设置的情况下,是其父容器的100%

  行内(内联)元素 inline:如<a>、<span>、<br>、<i>、<em>、<strong>、<label>、<q>、<var>、<cite>、<code>等

    特点: 前后无换行符

        元素的高 宽 顶边距和底边距不可设置

        元素的宽度就是他包含的文本或者图片的宽度。

  行内块元素 inline-block:如<img>、<input>

    特点: 前后无换行符

        元素的 高 宽 顶边距和底边距可以设置

我们可以使用css中的display属性改变元素类型:

display    =  inline  默认。此元素会被显示为内联元素,元素前后没有换行符。

           block  此元素将显示为块级元素,此元素前后会带有换行符。

           none  此元素会被隐藏,且隐藏的元素不会占用任何空间

           inline-block  设置为行内块元素

css中的display属性对元素进行转换,也可以隐藏元素。

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. li{
  7. display: inline;
  8. background-color: #A7C942;
  9. font-size: 28px;
  10. }
  11.  
  12. </style>
  13. </head>
  14.  
  15. <body>
  16.  
  17. <ul >
  18. <li>a</li>
  19. <li>b</li>
  20. <li>c</li>
  21. <li>d</li>
  22. </ul>
  23.  
  24. </body>
  25. </html>

块元素转为行内元素

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. span{
  7. display: block;
  8. background-color: #A7C942;
  9. font-size: 28px;
  10. }
  11.  
  12. </style>
  13. </head>
  14.  
  15. <body>
  16.  
  17. <p><span>hello</span><span>world</span></p>
  18.  
  19. </body>
  20. </html>

行内元素转换为块元素

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. span{
  7. display: block;
  8. background-color: #A7C942;
  9. font-size: 28px;
  10. }
  11. .a{
  12. display: none;
  13. }
  14.  
  15. </style>
  16. </head>
  17.  
  18. <body>
  19.  
  20. <p><span class="a">hello</span><span>world</span></p>
  21.  
  22. </body>
  23. </html>

隐藏元素

11  布局模型

CSS 有三种基本的定位机制:普通流、绝对定位、浮动。

css中有三种布局模型:

  1  流动模型,默认模型。在这种模型下:

    1  块元素都会在所处的包含元素自上而下按照顺序垂直延伸分布,因此在默认状态下,块元素的宽度都是100%

    2  内联元素则会在所处的包含元素内从左到右水平分布显示

  2  浮动模型,float

    使用float属性可以让两个块元素并排显示,浮动的元素仍处在标准文档流中。

  3  层模型,使用css中的position

  css的position属性有四个值:

    static:HTML元素的默认值,即没有定位,元素出现在正常的流中,也就是普通流。静态定位的元素不会受到top, bottom, left, right影响。

    fixed:元素的位置相对于浏览器窗口是固定位置,相当于定位基准为视窗本身的绝对定位。即使窗口是滚动的它也不会移动。通过 left right top bottom 来确定元素在正常流中的偏移位置。

    relative:相对定位元素的定位是相对其正常位置,也是出现在普通流。如果对一个元素进行相对定位,它将出现在它所在的位置上。然后,可以通过设置垂直或水平位置,让这个元素“相对于”它的起点进行移动,相对定位元素它原本占的空间不会改变(也就是在普通流中原来的位置仍保留)。通过 left right top bottom 来确定元素在正常流中的偏移位置。

    absolute:绝对定位的元素的位置相对于最近的已定位父元素,如果元素没有已定位的父元素,那么它的位置相对于<html>。absolute定位的元素会和其他元素重叠。Absolute定位使元素的位置与文档流无关,因此不占据空间。通过 left right top bottom 来确定元素在正常流中的偏移位置。

    absolute可以和relative组合使用,定位元素以某个元素作为参照物进行定位。但有几个前提条件:

      1  参照元素必需是定位元素的父元素

      2  参照元素必需使用position:relative

      3  定位元素使用position:absolute进行定位

另外,我们可以使用z-index属性来设置元素的堆叠次序(垂直方向的前后)

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. .b{
  7. position:fixed;
  8. z-index: -1;
  9.  
  10. }
  11.  
  12. </style>
  13. </head>
  14.  
  15. <body>
  16.  
  17. <img class='b' src="l.jpg">
  18. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  19. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  20. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  21. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  22. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  23. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  24. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  25. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  26. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  27. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  28. <p>hello world</p><p>hello world</p>
  29.  
  30. </body>
  31. </html>

position=fixed实例

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. .b{
  7. position:relative;
  8. top: 30px;
  9.  
  10. }
  11.  
  12. </style>
  13. </head>
  14.  
  15. <body>
  16.  
  17. <p class="b">test test test</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  18. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  19.  
  20. </body>
  21. </html>

position=relative实例

注意:在relative介绍中,有这样一句话“相对定位元素它原本所占的空间不会改变(也就是在普通流中原来的位置仍保留)”。这句话在relative实例中,得到了体现。hello world并不会占用第一行,而是从第二个段落位置开始排列。

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. .b{
  7. position:absolute;
  8. top: 30px;
  9.  
  10. }
  11.  
  12. </style>
  13. </head>
  14.  
  15. <body>
  16.  
  17. <p class="b">test test test</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  18. <p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p><p>hello world</p>
  19.  
  20. </body>
  21. </html>

position=absolute实例

Absolute定位使元素的位置与文档流无关,因此不占据空间。可以和relative的实例结果进行比较。

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <style>
  5.  
  6. .b{
  7. position:absolute;
  8.  
  9. z-index: -1;
  10. }
  11.  
  12. </style>
  13. </head>
  14.  
  15. <body>
  16.  
  17. <img class='b' src="l.jpg">
  18. <p>hello world</p>
  19.  
  20. </body>
  21. </html>

z-index实例

浏览器显示:

另外,定位属性还有很多,贴张图:

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <p>Mouse over the words to change the cursor.</p>
  5. <span style="cursor:auto">auto</span><br>
  6. <span style="cursor:crosshair">crosshair</span><br>
  7. <span style="cursor:default">default</span><br>
  8. <span style="cursor:e-resize">e-resize</span><br>
  9. <span style="cursor:help">help</span><br>
  10. <span style="cursor:move">move</span><br>
  11. <span style="cursor:n-resize">n-resize</span><br>
  12. <span style="cursor:ne-resize">ne-resize</span><br>
  13. <span style="cursor:nw-resize">nw-resize</span><br>
  14. <span style="cursor:pointer">pointer</span><br>
  15. <span style="cursor:progress">progress</span><br>
  16. <span style="cursor:s-resize">s-resize</span><br>
  17. <span style="cursor:se-resize">se-resize</span><br>
  18. <span style="cursor:sw-resize">sw-resize</span><br>
  19. <span style="cursor:text">text</span><br>
  20. <span style="cursor:w-resize">w-resize</span><br>
  21. <span style="cursor:wait">wait</span><br>
  22. </body>
  23. </html>

更改光标cursor实例

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. div.scroll
  6. {
  7. background-color:#00FFFF;
  8. width:200px;
  9. height:100px;
  10. overflow:scroll;
  11. }
  12.  
  13. div.hidden
  14. {
  15. background-color:#00FF00;
  16. width:100px;
  17. height:100px;
  18. overflow:hidden;
  19. }
  20. </style>
  21. </head>
  22.  
  23. <body>
  24. <p>The overflow property specifies what to do if the content of an element exceeds the size of the element's box.</p>
  25.  
  26. <p>overflow:scroll</p>
  27. <div class="scroll">You can use the overflow property when you want to have better control of the layout. The default value is visible.</div>
  28.  
  29. <p>overflow:hidden</p>
  30. <div class="hidden">You can use the overflow property when you want to have better control of the layout. The default value is visible.</div>
  31. </body>
  32. </html>

溢出overflow实例

css常用属性1的更多相关文章

  1. 好程序员web前端分享css常用属性缩写

    好程序员web前端分享css常用属性缩写,使用缩写可以帮助减少你CSS文件的大小,更加容易阅读.css缩写的主要规则如下: 颜色 16进制的色彩值,如果每两位的值相同,可以缩写一半,例如: #0000 ...

  2. 1+x证书学习日志——css常用属性

     ## css常用属性:             1:文本属性:                 文本大小:  font-size:18px;                 文本颜色    colo ...

  3. 02: css常用属性

    目录: 1.1 设置样式的七个选择器 1.2 css常见属性浅析 1.3 css布局中常用方法 1.1 设置样式的七个选择器返回顶部 1.其中选择器介绍 1. 直接在标签里的style标签写样式 2. ...

  4. CSS常用属性-xy

    一.文本Text CSS text-align 属性 文本对齐方式 CSS text-decoration 属性 text-decoration 属性规定添加到文本的修饰 CSS line-heigh ...

  5. css常用属性汇总

    一.常用css属性 (1) *block(区块) 行高 line-height:数值 | inherit | normal; 字间距 letter-spacing: 数值 | inherit | no ...

  6. 23----2013.07.01---Div和Span区别,Css常用属性,选择器,使用css的方式,脱离文档流,div+css布局,盒子模型,框架,js基本介绍

    01 复习内容 复习之前的知识点 02演示VS创建元素 03div和span区别 通过display属性进行DIV与Span之间的转换.div->span 设置display:inline   ...

  7. css常用属性总结:颜色和单位

    在css代码编写中,估计颜色和单位是必不可少的,然而在css中关于颜色和单位值的写法有很多种写法,所以有必要把它弄清楚. 颜色 当初我在初学前端的时候,就会冒出一个疑问“我该如何设置网页颜色?”,一般 ...

  8. javascript之css常用属性

    1. position : 属性值有absolute .fixed.relative absolute:生成绝对定位的元素,相对第一父元素进行定位: fixed :   生成绝对定位的元素,相对于浏览 ...

  9. css常用属性2

    1  浮动和清除浮动 在上篇的第十一节--定位中说道: CSS 有三种基本的定位机制:普通流.浮动和绝对定位. 普通流和绝对定位已经说完,接下来就是浮动了. 什么是浮动? CSS 的 Float(浮动 ...

随机推荐

  1. What is the difference between Debug and Release in Visual Studio?

    "Debug" and "Release" are actually just two labels for a whole slew of settings ...

  2. Spring(四)-- JdbcTemplate、声明式事务

    1.Spring提供的一个操作数据库的技术JdbcTemplate,是对Jdbc的封装.语法风格非常接近DBUtils.   JdbcTemplate可以直接操作数据库,加快效率,而且学这个JdbcT ...

  3. java 基础三

    1 运算符 1.1  比较运算符 比较运算符的结果都是boolean类型,也即是要么是true,要么是false. 比较运算符"=="不能写成"=". > ...

  4. 2015苏州大学ACM-ICPC集训队选拔赛(3)题解

    第三次校赛链接:快戳我 1001 考虑前半组数,我们只需要标记每个数出现的次数,再加上这个数之前的数出现的次数,即为这个数在m次操作中总共需要翻转的次数(即求前缀和),再根据翻转的奇偶性判断最后这个位 ...

  5. javaSE基础之 LinkedList的底层简单实现

    这里贴上LinkedList底层的简单实现 package com.yck.mylinkedlist; public class Node { private Node previous; //上一结 ...

  6. HK2框架的简单自实现kunJ

    kunJ kunJ框架,是基于HK2框架的一个自实现注入框架,功能比较简单,重在探索依赖注入的实现原理. 实现细节 自定义3个注解,Access,Inject,Service 在Service中实现对 ...

  7. JSON 理解

    转自: http://blog.csdn.net/qyf_5445/article/details/8635578 (json很全面的理解) http://www.cnblogs.com/haitao ...

  8. PHP(函数)

    <script> // 获得日 var time = new Date(); var x = time.getDate(); document.write(x+"日," ...

  9. java 多线程(0) Java线程

    线程 线程是系统调度的基本单元,每当创建一个进程时,会有许多的线程,也叫轻量级进程,在一个进程中拥有多个线程,各自都有自己的计数器,堆和局部变量属性,并且能够分享内存变量. 为什么要使用多线程  1. ...

  10. 软工+C(2017第5期) 工具和结构化

    // 上一篇:Alpha/Beta换人 // 下一篇:最近发展区/脚手架 工具/轮子 软件工程/计算机相关专业的一个特点是会使用到众多的工具,工具的使用是从程序猿进化到程序员的一个关键要素.软件工程师 ...