前言


一、认识

From: http://www.runoob.com/css/css-tutorial.html

CSS 指层叠样式表 (Cascading Style Sheets)

解决内容与表现分离的问题。

二、结构

  • 形式:属性-值

  • class 选择器
  1. <style>
  2. body {background-color:tan;}
  3. h1 {color:maroon;font-size:20pt;}
  4. hr {color:navy;}
  5. p {font-size:11pt;margin-left:15px;}
  6. a:link {color:green;}
  7. a:visited {color:yellow;}
  8. a:hover {color:black;}
  9. a:active {color:blue;}
  10. </style>
  • id 选择器
  1. <style>
  2. #para1
  3. {
  4. text-align:center;
  5. color:red;
  6. }
  7. </style>
  8. </head>
  9.  
  10. <body>
  11. <p id="para1">Hello World!</p>
  12. </body>
  • 分组 选择器 

为了尽量减少代码,你可以使用分组选择器。

  1. h1
  2. {
  3. color:green;
  4. }
  5. h2
  6. {
  7. color:green;
  8. }
  9. p
  10. {
  11. color:green;
  12. }
  13. ----------------> 简写为如下
  14. h1,h2,p
  15. {
  16. color:green;
  17. }
  • 嵌套 选择器
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <title>菜鸟教程(runoob.com)</title>
  6.   <style>
  7.   p
  8.   {
  9.    color:blue;
  10.    text-align:center;
  11.   }
  12.   .marked
  13.   {
  14.    background-color:red;
  15.   }
  16.   .marked p
  17.   {
  18.    color:white;
  19.   }
  20.   p.marked{
  21.    text-decoration:underline;
  22.   }
  23.   </style>
  24. </head>
  25.  
  26. <body>
  27.   <p>这个段落是蓝色文本,居中对齐。</p>
  28.   <div class="marked">
  29.     <p>这个段落不是蓝色文本。</p>
  30.   </div>
  31.   <p>所有 class="marked"元素内的 p 元素指定一个样式,但有不同的文本颜色。</p>
  32.  
  33.   <p class="marked">带下划线的 p 段落。</p>
  34. </body>
  35. </html>
  1. p{ }: 为所有 p 元素指定一个样式。
  2. .marked{ }: 为所有 class="marked" 的元素指定一个样式。
  3. .marked p{ }: 为所有 class="marked" 元素内的 p 元素指定一个样式。
  4. p.marked{ }: 为所有 class="marked" p 元素指定一个样式。

设置了三个样式

  • 组合选择符

Ref: http://www.runoob.com/css/css-combinators.html

(1) 后代选择器(以空格分隔)

  1. div p
  2. {
  3. background-color:yellow;
  4. }

(2) 子元素选择器【必须有父元素,也体现了 '伪类' 的效果】

  1. div>p
  2. {
  3. background-color:yellow;
  4. }

(3) 相邻兄弟选择器【既然相邻,就只能有一个】

  1. div+p
  2. {
  3. background-color:yellow;
  4. }

(4) 后续兄弟选择器

  1. div~p
  2. {
  3. background-color:yellow;
  4. }

三、样式表

  • 内部样式表

上述例子。

  • 外部样式表

浏览器会从文件 mystyle.css 中读到样式声明,并根据它来格式文档。

  1. <head>
  2.   <link rel="stylesheet" type="text/css" href="mystyle.css">
  3. </head>  
  • 内联样式

写在html内部,有点箭头函数的意思。

  1. <p style="color:sienna;margin-left:20px">这是一个段落。</p>
  • 多重样式 - 优先级

优先内部样式。

(内联样式)Inline style > (内部样式)Internal style sheet >(外部样式)External style sheet > 浏览器默认样式

属性详谈


一、背景

  • 纯色背景
  1. body {background-color:#b0c4de;}
  2. h1 {background-color:#6495ed;}
  • 图片背景
  1. body
  2. {
  3.   background-image:url('gradient2.png');
      # 平铺设置
  4.   background-repeat:repeat-x;
      # 不平铺
      background-repeat:no-repeat;
      background-position:right top;
    }

等价于:

为了简化这些属性的代码,我们可以将这些属性合并在同一个属性中.

  1. <style>
  2. body
  3. {
  4. background:#ffffff url('img_tree.png') no-repeat right top;
  5. margin-right:200px;
  6. }
  7. </style>

当使用简写属性时,属性值的顺序为:

  1. background-color
  2. background-image
  3. background-repeat
  4. background-attachment
  5. background-position

二、文本

  • 基本属性
  1. #三种写法
  2. body {color:red;}
  3. h1 {color:#00ff00;}
  4. h2 {color:rgb(255,0,0);}
  5.  
  6. #对齐方式
  7. h1 {text-align:center;}
  8. p.date {text-align:right;}
  9. p.main {text-align:justify;}
  10.  
  11. #缩进
    p {text-indent:50px;}
  • 高级属性
  1. # 划线
  2. a {text-decoration:none;}
  3. h1 {text-decoration:overline;}
  4. h2 {text-decoration:line-through;}
  5. h3 {text-decoration:underline;}
  6.  
  7. # 文本转换
  8. p.uppercase {text-transform:uppercase;}
  9. p.lowercase {text-transform:lowercase;}
  10. p.capitalize {text-transform:capitalize;}

其他详见:http://www.runoob.com/css/css-text.html

  • 字体样式、大小

font-family 属性应该设置几个字体名称作为一种"后备"机制,如果浏览器不支持第一种字体,他将尝试下一种字体。

  1. p{font-family:"Times New Roman", Times, serif;}
  2.  
  3. p.normal {font-style:normal;}
  4. p.italic {font-style:italic;}
  5. p.oblique {font-style:oblique;}

大小,外层body的百分比控制内部所有文字缩放比例。

  1. body {font-size:100%;}
  2. h1 {font-size:2.5em;}
  3. h2 {font-size:1.875em;}
  4. p {font-size:0.875em;}
  • 链接

设置同一个链接的四个不同状态。

这里使用了 “伪类” 的概念。

  1. a:link {color:#000000;} /* 未访问链接*/
  2. a:visited {color:#00FF00;} /* 已访问链接 */
  3. a:hover {color:#FF00FF;} /* 鼠标移动到链接上 */
  4. a:active {color:#0000FF;} /* 鼠标点击时 */
  5.  
  6. a:link {text-decoration:none;}
    a:link {background-color:#B2FF99;}
  1. a:hover 必须跟在 a:link a:visited后面
  2. a:active 必须跟在 a:hover后面

注意顺序

  • 文字框

Goto: http://www.runoob.com/css/css-border.html

文字边框属性。

  • 轮廓(outline)

Goto: http://www.runoob.com/css/css-outline.html

  1. <style>
  2. p
  3. {
  4. border:1px solid red;
  5. outline:green dotted thick;
  6. }
  7. </style>
  • margin(外边距)与 padding(内边距)

  1. margin-top :100px;
  2. margin-bottom :100px;
  3. margin-right :50px;
  4. margin-left :50px;
  5.  
  6. padding-top :25px;
  7. padding-bottom:25px;
  8. padding-right :50px;
  9. padding-left :50px;

'简写形式' 以及 '顺序' 请见:

Goto: http://www.runoob.com/css/css-margin.html

Goto: http://www.runoob.com/css/css-padding.html

  • 尺寸 (Dimension)

控制元素的高度和宽度。

Goto: http://www.runoob.com/css/css-dimension.html

三、列表

  • 常规标记

每一条前加个 ‘点’。

  1. <head>
    <style>
  2.   ul.a {list-style-type:circle;}
  3. </style>
  4. </head>
  5.  
  6. <body>
  7. <p>无序列表实例:</p>
  8.  
  9. <ul class="a">
  10. <li>Coffee</li>
  11. <li>Tea</li>
  12. <li>Coca Cola</li>
  13. </ul>
    <body>
  • 图片标记
  1. <style>
  2.   ul   #这里竟然没有考虑<li>
  3.   {
  4.    list-style-image:url('sqpurple.gif');
  5.   }
  6. </style>
  7. </head>
  8.  
  9. <body>
  10. <ul>
  11.   <li>Coffee</li>
  12.   <li>Tea</li>
  13.   <li>Coca Cola</li>
  14. </ul>
  15. </body>

  • 浏览器兼容性解决方案

其实就是不采用浏览器默认处理方式,而改为直接设置各个属性,达到显示一致的效果。

详见:http://www.runoob.com/css/css-list.html

四、表格

使用 CSS 可以使 HTML 表格更美观。

  • 边框
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <title>菜鸟教程(runoob.com)</title>
  6.   <style>
  7.     table,th,td
  8.     {
  9.      border:1px solid black;
  10.     }
  11.   </style>
  12. </head>
  13.  
  14. <body>
  15.   <table>
  16.     <tr>
  17.       <th>Firstname</th>  # <th>在单元格中加粗显示
  18.       <th>Lastname</th>
  19.     </tr>
  20.     <tr>
  21.       <td>Peter</td>
  22.       <td>Griffin</td>
  23.     </tr>
  24.     <tr>
  25.       <td>Lois</td>
  26.       <td>Griffin</td>
  27.     </tr>
  28.   </table>
  29. </body>
  30. </html>

不要空隙:

  1. table
  2. {
  3.   border-collapse:collapse;  # 去掉边框间空隙
  4. }
  5. table,th, td
  6. {
  7.   border: 1px solid black;
  8. }
  • 宽度和高度
  1. table
  2. {
  3. width:100%;
  4. }
  5. th
  6. {
  7. height:50px;
  8. }
  • 文字对齐
  1. td
  2. {
  3. text-align:right;      # 水平对齐
    height:50px;
    vertical-align:bottom; # 垂直对齐
    }

内部间距:

  1. td
  2. {
  3. padding:15px;
  4. }
  • 颜色
  1. # 边框颜色
  2. table, td, th
  3. {
  4.   border:1px solid green;
  5. }
  6.  
  7. # 背景填充颜色
    th
  8. {
  9.   background-color:green;
  10.   color:white;
  11. }

  

五、Display(显示) 与 Visibility(可见性)

  • Display

注意, 实例中的隐藏标题不占用空间。

  1. h1.hidden {display:none;}
  • Visibility

注意, 实例中的隐藏标题仍占用空间。

  1. h1.hidden {visibility:hidden;}

六、内联方式

  • 内联元素

Ref: HTML 内联元素

内联元素在显示时通常不会以新行开始。

例子:<b>, <td>, <a>, <img>

    • HTML <div>    元素是块级元素,它是可用于组合其他 HTML 元素的容器。
    • HTML <span> 元素是内联元素,可用作文本的容器。

(1) 变为内联,变得没换行。

  1. <style>
  2.   li{display:inline;}
  3. </style>

(2) 变为block,变得有换行。

  1. span
  2. {
  3. display:block;
  4. }

空间位置


一、盒子模型 (Box Model)

  • 概念

  • 代码
  1. div {
  2. background-color: lightgrey;
  3. width: 300px;
  4. border: 25px solid green;
  5. padding: 25px;
  6. margin: 25px;
  7. }
  • 效果

  • 计算方法
  1. # 求显示的总宽度
  2.  
  3. 300px (宽)
  4. + 50px (左 + 右填充)
  5. + 50px (左 + 右边框)
  6. + 50px (左 + 右边距)
  7. = 450px

二、Position 定位

  • 相对位置
  1. <style>
  2. h2.pos_left
  3. {
  4. position:relative;
  5. left:-20px;
  6. }
  7.  
  8. h2.pos_right
  9. {
  10. position:relative;
  11. left:20px;
  12. }
  13. </style>
  14. </head>
  15.  
  16. <body>
  17. <h2>这是位于正常位置的标题</h2>  # 注意,都是以这个作为‘位置参照’,而不是上一条。
  18. <h2 class="pos_left">这个标题相对于其正常位置向左移动</h2>
  19. <h2 class="pos_right">这个标题相对于其正常位置向右移动</h2>
  • sticky属性

三,图片位置浮动

  • 图片在文字中的浮动
  1. <style>
  2. img
  3. {
  4. float:right;
  5. }
  6. </style>
  1. <p>
  2. <img src="logocss.gif" width="95" height="84" />
  3. 这是一些文本。这是一些文本。这是一些文本。
  4. 这是一些文本。这是一些文本。这是一些文本。
  5. 这是一些文本。这是一些文本。这是一些文本。
  6. 这是一些文本。这是一些文本。这是一些文本。
  7. 这是一些文本。这是一些文本。这是一些文本。
  8. 这是一些文本。这是一些文本。这是一些文本。
  9. 这是一些文本。这是一些文本。这是一些文本。
  10. 这是一些文本。这是一些文本。这是一些文本。
  11. 这是一些文本。这是一些文本。这是一些文本。
  12. 这是一些文本。这是一些文本。这是一些文本。
  13. </p>

【效果】

  • mix组件的浮动

img与string通过div构成了一个组件。浮动时作为整体处理。浮动的布局考虑同级目录即可。

  1. <div>
  2. <img src="logocss.gif" width="95" height="84" /><br>
  3. CSS is fun!
  4. </div>
  5. <p>
  6. This is some text. This is some text. This is some text.
  7. This is some text. This is some text. This is some text.
  8. This is some text. This is some text. This is some text.
  9. This is some text. This is some text. This is some text.
  10. This is some text. This is some text. This is some text.
  11. This is some text. This is some text. This is some text.
  12. This is some text. This is some text. This is some text.
  13. This is some text. This is some text. This is some text.
  14. This is some text. This is some text. This is some text.
  15. This is some text. This is some text. This is some text.
  16. This is some text. This is some text. This is some text.
  17. This is some text. This is some text. This is some text.
  18. This is some text. This is some text. This is some text.
  19. </p>

【效果】

  • 图片们的浮动
  1. <style>
  2. .thumbnail
  3. {
  4. float:left;
  5. width:110px;
  6. height:90px;
  7. margin:5px;
  8. }
  9. </style>
  1. <body>
  2. <h3>图片库</h3>
  3. <p>试着调整窗口,看看当图片没有足够的空间会发生什么。</p>
  4. <img class="thumbnail" src="/images/klematis_small.jpg" width="107" height="90">
  5. <img class="thumbnail" src="/images/klematis2_small.jpg" width="107" height="80">
  6. <img class="thumbnail" src="/images/klematis3_small.jpg" width="116" height="90">
  7. <img class="thumbnail" src="/images/klematis4_small.jpg" width="120" height="90">
  8. <img class="thumbnail" src="/images/klematis_small.jpg" width="107" height="90">
  9. <img class="thumbnail" src="/images/klematis2_small.jpg" width="107" height="80">
  10. <img class="thumbnail" src="/images/klematis3_small.jpg" width="116" height="90">
  11. <img class="thumbnail" src="/images/klematis4_small.jpg" width="120" height="90">
  12. </body>

【效果】

  • 清除浮动 - 使用 clear
  1. .text_line
  2. {
  3. clear:both;
  4. }

四、对齐

  • 【元素居中】:从整体看去
  1. <style>
  2. .center { margin: auto;
  3. width: 60%;  # 必须设置
  4. border: 3px solid #73AD21;
  5. padding: 10px;
  6. }
  7. </style>

显示效果:

  • 【文本居中】:文本在元素内居中对齐
  1. <style>
  2. .center { text-align: center;
  3. border: 3px solid green;
  4. }
  5. </style>
  • 【图片居中】:可以使用 margin: auto; 并将它放到 块 元素中
  1. <style>
    img {
  2. display: block;
  3. margin: auto;
  4. width: 40%;
  5. }
    </style>
  • 【左右对齐】- Position + left/right
  1. .right {
    position: absolute;
    right: 0px;
  2. width: 300px;
  3. border: 3px solid #73AD21;
  4. padding: 10px;
  5. }

也可以使用下面介绍的 float 的方式。

  • 【嵌套布局】- body -> container -> right

当使用 position 来对齐元素时, 通常 <body> 元素会设置 margin 和 padding 。

这样可以避免在不同的浏览器中出现可见的差异。

  1. body {
  2. margin:;
  3. padding:;
  4. }
  5.  
  6. .container {
  7. position: relative;
  8. width: 100%;
  9. }
  10.  
  11. .right {
  12. position: absolute;
  13. right: 0px;
  14. width: 300px;
  15. background-color: #b0e0e6;
  16. }

嵌套代码结构:

  1. <body>
  2.   <div class="container">
  3.    <div class="right">
  4.    <p><b>注意: </b>当使用浮动属性对齐,总是包括 !DOCTYPE 声明!如果丢失,它将会在 IE 浏览器产生奇怪的结果。</p>
  5.    </div>
  6.   </div>
  7. </body>
  • 【Float对齐】
  1. <style>
  2. .right { float: right;
  3. width: 300px;
  4. border: 3px solid #73AD21;
  5. padding: 10px;
  6. }
  7. </style>

可见,也可以使用 float 属性来对齐元素:

  1. float: right

  2. -- 类似于 --
  3. position: absolute;
  4. right: 0px;
  • 【溢出问题】

在父元素上添加 overflow: auto; 来解决子元素溢出的问题。

  1. .clearfix {
  2. overflow: auto;
  3. }
  1. <div>
  2. <img class="img1" src="pineapple.jpg" alt="Pineapple" width="170" height="170">
  3. 菜鸟教程 - 学的不仅是技术,更是梦想!!!</div>
  4.  
  5. <p style="clear:right">在父元素上通过添加 clearfix 类,并设置 overflow: auto; 来解决该问题:</p>
  6.  
  7. <div class="clearfix">
  8. <img class="img2" src="pineapple.jpg" alt="Pineapple" width="170" height="170">
  9. 菜鸟教程 - 学的不仅是技术,更是梦想!!!</div>

溢出效果:

  • 【垂直居中对齐】 - 使用 padding
  1. .center {
  2. padding: 70px 0;
  3. border: 3px solid green;
  4. }
  • 【水平垂直居中】

在垂直居中基础上添加水平居中即可。

  1. .center {
  2. padding: 70px 0;
  3. border: 3px solid green;
    text-align: center;
  4. }

  • 【垂直居中 - 番外篇】

* 通过行高设置,达到垂直居中效果。

  1. <style>
  2. .center { line-height: 200px; height: 200px;
  3. border: 3px solid green;
  4. text-align: center;
  5. }
  6.  
  7. /* 如果有多行文本,可以设置如下 */
  8.  
  9. .center p {
  10. line-height: 1.5;
  11. display: inline-block;
  12. vertical-align: middle;
  13. }
  14. </style>

* 垂直居中 - 使用 position 和 transform

  1. .center {
  2. height: 200px;
  3. position: relative;
  4. border: 3px solid green;
  5. }
  6.  
  7. .center p {
  8. margin:;
  9. position: absolute;
  10. top: 50%;
  11. left: 50%;
  12. transform: translate(-50%, -50%);
  13. }

伪类、伪元素


From: http://www.runoob.com/css/css-pseudo-classes.html

From: http://www.runoob.com/css/css-pseudo-elements.html

一、啥是伪类

  • anchor伪类
  1. a:link {color:#FF0000;} /* 未访问的链接 */
  2. a:visited {color:#00FF00;} /* 已访问的链接 */
  3. a:hover {color:#FF00FF;} /* 鼠标划过链接 */
  4. a:active {color:#0000FF;} /* 已选中的链接 */
  • 伪类的语法
  1. selector:pseudo-class {property:value;}

  2. # CSS类也可以使用伪类
  3. selector.class:pseudo-class {property:value;}

二、first-child 伪类

  • 匹配第一个 <p> 元素
  1. p:first-child
  2. {
  3. color:blue;
  4. }
  • 匹配所有<p> 元素中的第一个 <i> 元素
  1. <head>
  2.   <meta charset="utf-8">
  3.   <title>菜鸟教程(runoob.com)</title>
  4.   <style>
  5.   p > i:first-child
  6.   {
  7.   color:blue;
  8.   }
  9.   </style>
  10. </head>
  11.  
  12. <body>
  13.   <p>I am a <i>strong</i> man. I am a <i>strong</i> man.</p>
  14.   <p>I am a <i>strong</i> man. I am a <i>strong</i> man.</p>
  15.   <p><b>注意:</b> 当 :first-child 作用于 IE8 以及更早版本的浏览器, !DOCTYPE 必须已经定义.</p>
  16. </body>
  • 匹配所有作为第一个子元素的 <p> 元素中的所有 <i> 元素
  1. <head>
  2.   <meta charset="utf-8">
  3.   <title>菜鸟教程(runoob.com)</title>
  4.   <style>
  5.   p:first-child i
  6.   {
  7.    color:blue;
  8.   }
  9.   </style>
  10. </head>
  11.  
  12. <body>
  13.   <p>I am a <i>strong</i> man. I am a <i>strong</i> man.</p>
  14.   <p>I am a <i>strong</i> man. I am a <i>strong</i> man.</p>
  15.   <p><b>注意:</b> 当:first-child 作用于 IE8 及更早版本的浏览器, DOCTYPE 必须已经定义.</p>
  16. </body>

Goto: 所有CSS伪类/元素,请见原链接。

三、CSS 伪元素

  • 语法

CSS伪元素是用来添加一些选择器的特殊效果。

  1. # 伪元素的语法:
  2. selector:pseudo-element {property:value;}
  3. # CSS类也可以使用伪元素:
  4. selector.class:pseudo-element {property:value;}
  • first-line 伪元素
  1. <head>
  2.   <meta charset="utf-8"> 
  3.   <title>菜鸟教程(runoob.com)</title> 
  4.   <style>
  5.   p:first-line
  6.   {
  7.   color:#ff0000;
  8.   font-variant:small-caps;
  9.   }
  10.   </style>
  11. </head>
  12.  
  13. <body>
  14.   <p>你可以使用 "first-line" 伪元素向文本的首行设置特殊样式。</p>
  15. </body> 

效果图: 

  • first-letter 伪元素
  1. <style>
  2. p:first-letter
  3. {
  4. color:#ff0000;
  5. font-size:xx-large;
  6. }
  7. </style>

效果图: 

  • 多个伪元素
  1. <style>
  2.   p:first-letter
  3.   {
  4.    color:#ff0000;
  5.    font-size:xx-large;
  6.   }
  7.   p:first-line
  8.   {
  9.    color:#0000ff;
  10.    font-variant:small-caps;
  11.   }
  12. </style>
  • before 伪元素
  1. <style>
  2.   h1:before {content:url(smiley.gif);}
  3. </style>
  • after 伪元素
  1. <style>
  2.   h1:after {content:url(smiley.gif);}
  3. </style>

Goto: 所有CSS伪类/元素,请见原链接。

[UI] 01 - CSS的更多相关文章

  1. jquery ui的css设计

    jquery ui 是当前最强大的UI库之一,其两大卖点是对IE6的良好支持与换肤功能.为了构建avalon ui,今天起我将投入一部分精力来研究时下最流行的几个CSS框架.它是首当其冲. jquer ...

  2. AmazeUI(妹子UI)中CSS组件、JS插件、Web组件的区别

    AmazeUI(妹子UI)是非常优秀的国产前端UI,现在来介绍一下AmazeUI中CSS组件.JS插件与Web组件的区别. CSS组件顾名思义就是仅使用CSS渲染而成的组件,而JS插件也很容易理解,就 ...

  3. amaze UI 笔记 - CSS

    导航添加依据 http://amazeui.org/css/  下面内容属学习笔记,如有理解偏差和错误请留言相告,感谢!* =(官网这块写的很详细) 一.基本样式 1.统一样式 说明了为什么使用Nor ...

  4. jquery ui的css设计二

    上一篇见这里 本篇重点说一下其换肤功能 换肤一般是指改变控件的字体颜色,背景颜色,边框颜色,hover上去的颜色,背景图片,很少再会涉及修改其长宽,字体类型什么的. 以这个版本的CSS为观察对象,可以 ...

  5. (0-1)CSS 标签语法的属性

    CSS text-decoration 属性 display display 属性规定元素应该生成的框的类型

  6. CSS学习笔记01 CSS简介

    1.CSS定义 CSS 指层叠样式表 (Cascading Style Sheets),是一种样式表语言,用来描述 HTML 或 XML(包括如 SVG.XHTML 之类的 XML 分支语言)文档的呈 ...

  7. 01. css sprite是什么,有什么优缺点?

    1.css sprite是什么,有什么优缺点? 通常被意译为“CSS图像拼合”或“CSS贴图定位” 1)CSS Sprites的优点 利用CSS Sprites能很好地减少网页的http请求,从而大大 ...

  8. CSS Secrets 翻译笔记 01: CSS coding tips

    .firDemoButton{ padding: 6px 16px; border: 1px solid #446d88; background: #58a linear-gradient(#77a0 ...

  9. CRM WEB UI 01 BOL向导创建的搜索

    创建BOL的步骤就不说了,自己找,学习这个之前,需要自己先找个SAP CRM资料预习一下 T-CODE:BSP_WD_CMPWB 1.创建组件:输入组件名:ZLYTEST03,点击创建按钮,回车,选择 ...

随机推荐

  1. Codeforces Round #532 (Div. 2)

    Codeforces Round #532 (Div. 2) A - Roman and Browser #include<bits/stdc++.h> #include<iostr ...

  2. C++ operator重载运算符和隐式转换功能的实现

    C++ operator重载运算符和隐式转换功能的实现: #include <iostream> using namespace std; class OperatorTest { pub ...

  3. 第一章 flex单词计数程序

    学习Flex&Bison目标, 读懂SQLite中SQL解析部分代码 Flex&Bison简介Flex做词法分析Bison做语法分析 第一个Flex程序, wc.fl, 单词计数程序 ...

  4. 构造函数与getter和setter的区别

    构造函数是用于初始化类的属性,且只有在创建对象时才会调用构造函数,用于给对象分配地址 无参的构造函数,创建对象时默认调用,当程序没有明确写出有参的构造函数,系统会默认的创建一个. 有参的构造函数,创建 ...

  5. [java]struts2入门

    摘要 本文是struts2入门,配置教程.如何在IntelJ Idea中进行手动配置.在使用idea新建struts2web项目的时候,在下载jar包的过程中,下载失败,没办法就直接手动进行下载jar ...

  6. 【转】大数据分析中Redis怎么做到220万ops

    原文:http://www.cnblogs.com/nnhy/archive/2018/01/16/Redis220.html 大数据时代,海量数据分析就像吃饭一样,成为了我们每天的工作.为了更好的为 ...

  7. 如何在Windows 10上访问NFS的share

    大致过程是: 1. 开启名为"Services for NFS"的Windows Feature. 2. 如果需要拥有写权限,需要修改注册表. 3. Mount即可. 具体步骤详见 ...

  8. iOS开发-UIImageView高效设置Radius

    圆角的设置在iOS中随处可见,开发的时候也很方便,但是有的时候如果一个页面有大量的需要设置圆角的图片,容易产生性能问题,UIImageView ios9.0之前设置圆角是会产生离屏渲染的,9.0之后不 ...

  9. aglio报错解决

    Cannot write or read cache for themes (ENOENT on cache folder) aglio -i ./api.md -o api.html >> ...

  10. Java的oauth2.0 服务端与客户端的实现

    oauth原理简述 oauth本身不是技术,而是一项资源授权协议,重点是协议!Apache基金会提供了针对Java的oauth封装.我们做Java web项目想要实现oauth协议进行资源授权访问,直 ...