zoukankan      html  css  js  c++  java
  • css颜色

    div中控制某段字体 颜色
    html代码
    <div id="sidebar">
    <span>CSS 颜色大全 css 字体颜色</span></div>
    CSS文件
    #sidebar { }
    #sidebar .span{ color:#FF0000 }

    1 白色 #FFFFFF

    2 红色 #FF0000

    3 绿色 #00FF00
     

    4 蓝色 #0000FF

    5 牡丹红 #FF00FF

    6 青色 #00FFFF
     

    7 黄色 #FFFF00

    8 黑色 #000000

    9 海蓝 #70DB93
     

    10 巧克力色 #5C3317

    11 蓝紫色 #9F5F9F

    12 黄铜色 #B5A642

    13 亮金色 #D9D919

    14 棕色 #A67D3D

    15 青铜色 #8C7853



     16 2号青铜色 #A67D3D
     

    17 士官服蓝色 #5F9F9F

    18 冷铜色 #D98719

    19 铜色 #B87333

    20 珊瑚红 #FF7F00

    21 紫蓝色 #42426F

    22 深棕 #5C4033

    23 深绿 #2F4F2F

    24 深铜绿色 #4A766E

    25 深橄榄绿 #4F4F2F

    26 深兰花色 #9932CD
     

    27 深紫色 #871F78

    28 深石板蓝 #6B238E

    29 深铅灰色 #2F4F4F

    30 深棕褐色 #97694F

    32 深绿松石色 #7093DB

    32 深绿松石色 #7093DB

    33 暗木色 #855E42

    34 淡灰色 #545454

    35 土灰玫瑰红色#856363

    36 长石色 #D19275
     

    37 火砖色 #8E2323

    62 褐红色 #8E236B

    63 中海蓝色 #32CD99

    64 中蓝色 #3232CD

    65 中森林绿 #6B8E23
     

    66 中鲜黄色 #EAEAAE

    67 中兰花色 #9370DB

    68 中海绿色 #426F42

    69 中石板蓝色 #7F00FF

    70 中春绿色 #7FFF00

    71 中绿松石色 #70DBDB

    72 中紫红色 #DB7093

    73 中木色 #A68064

    74 深藏青色 #2F2F4F

    75 海军蓝 #23238E
     

    76 霓虹篮 #4D4DFF

    77 霓虹粉红 #FF6EC7

    78 新深藏青色 #00009C

    79 新棕褐色 #EBC79E

    80 暗金黄色 #CFB53B

    81 橙色 #FF7F00

    82 橙红色 #FF2400

    83 淡紫色 #DB70DB

    84 浅绿色 #8FBC8F


    85 粉红色 #BC8F8F
     

    86 李子色 #EAADEA

    87 石英色 #D9D9F3

    88 艳蓝色 #5959AB

    89 鲑鱼色 #6F4242

    90 猩红色 #BC1717
     

    91 海绿色 #238E68

    92 半甜巧克力色#6B4226

    93 赭色 #8E6B23

    94 银色 #E6E8FA

    95 天蓝 #3299CC

    96 石板蓝 #007FFF

    97 艳粉红色 #FF1CAE

    98 春绿色 #00FF7F

    99 钢蓝色 #236B8E

    100 亮天蓝色 #38B0DE

    101 棕褐色 #DB9370

    102 紫红色 #D8BFD8

    103 石板蓝色 #ADEAEA  

    104 浓深棕色 #5C4033

    105 淡浅灰色 #CDCDCD   

    106 紫罗兰色#4F2F4F

    107 紫罗兰红色 #CC3299  

    108 麦黄色 #D8D8BF

    109 黄绿色 #99CC

    css样式大全(整理版)

    字体属性:(font)
    大小 {font-size:x-large;}(特大) xx-small;(极小) 一般中文用不到,只要用数值就可以,单位:PX、PD
    样式 {font-style:oblique;}(偏斜体) italic;(斜体) normal;(正常)
    行高 {line-height:normal;}(正常) 单位:PX、PD、EM
    粗细 {font-weight:bold;}(粗体) lighter;(细体) normal;(正常)
    变体 {font-variant:small-caps;}(小型大写字母) normal;(正常)
    大小写 {text-transform:capitalize;}(首字母大写) uppercase;(大写) lowercase;(小写) none;(无)
    修饰{text-decoration: underline;}(下划线) overline;(上划线) line-through;(删除线) blink;(闪烁)

    常用字体: (font-family)
    "Courier New", Courier, monospace, "Times New Roman",Times, serif, Arial, Helvetica, sans-serif, Verdana

    背景属性: (background)
    色彩{}
    图片{background-image: url();}
    重复{background-repeat: no-repeat;}
    滚动{background-attachment: fixed;}(固定) scroll;(滚动)
    位置{background-position: left;}(水平) top(垂直);
    简写方法 {background:#000url(..) repeat fixed left top;} /*简写·这个在阅读代码中经常出现,要认真的研究*/

    区块属性: (Block) /*这个属性第一次认识,要多多研究*/
    字间距 {letter-spacing:normal;} 数值 /*这个属性似乎有用,多实践下*/
    对齐 {text-align:justify;}(两端对齐) left;(左对齐) right;(右对齐) center;(居中)
    缩进 {text-indent: 数值px;}
    垂直对齐 {vertical-align:baseline;}(基线) sub;(下标) super;(下标) top; text-top;middle; bottom; text-bottom;
    词间距word-spacing:normal; 数值
    空格white-space:pre;(保留) nowrap;(不换行)

    显示{display:block;}(块) inline;(内嵌) list-item;(列表项) run-in;(追加部分) compact;(紧凑) marker;(标记) table;inline-table; table-raw-group; table-header-group; table-footer-group;table-raw; table-column-group; table-column; table-cell; table-caption;(表格标题) /*display 属性的了解很模糊*/

    方框属性: (Box)
    ;height:; float:; clear:both; margin:; padding:;     顺序:上右下左
    边框属性: (Border)
    border-style: dotted;(点线) dashed;(虚线) solid; double;(双线) groove;(槽线) ridge;(脊状) inset;(凹陷) outset;
    border-; 边框宽度
    border-color:#;

    简写方法border:width stylecolor; /*简写*/

    列表属性: (List-style)
    类型list-style-type:    disc;(圆点) circle;(圆圈) square;(方块) decimal;(数字) lower-roman;(小罗码数字) upper-roman;lower-alpha; upper-alpha;
    位置list-style-position:outside;(外) inside;
    图像list-style-image:url(..);
    定位属性:(Position)
    Position:absolute; relative; static;
    visibility: inherit; visible; hidden;
    overflow: visible; hidden; scroll; auto;
    clip: rect(12px,auto,12px,auto) (裁切)

    css属性代码大全
    一 CSS文字属性:
    color : #999999; /*文字颜色*/
    font-family : 宋体,sans-serif; /*文字字体*/
     font-size : 9pt; /*文字大小*/
     font-style:itelic; /*文字斜体*/
     font-variant:small-caps; /*小字体*/
     letter-spacing : 1pt; /*字间距离*/
     line-height : 200%; /*设置行高*/
     font-weight:bold; /*文字粗体*/
     vertical-align:sub; /*下标字*/
     vertical-align:super; /*上标字*/
     text-decoration:line-through; /*加删除线*/
     text-decoration: overline; /*加顶线*/
     text-decoration:underline; /*加下划线*/
     text-decoration:none; /*删除链接下划线*/
     text-transform : capitalize; /*首字大写*/
     text-transform : uppercase; /*英文大写*/
     text-transform : lowercase; /*英文小写*/
     text-align:right; /*文字右对齐*/
     text-align:left; /*文字左对齐*/
     text-align:center; /*文字居中对齐*/
     text-align:justify; /*文字分散对齐*/
     vertical-align属性
    vertical-align:top; /*垂直向上对齐*/
     vertical-align:bottom; /*垂直向下对齐*/
     vertical-align:middle; /*垂直居中对齐*/
     vertical-align:text-top; /*文字垂直向上对齐*/

     vertical-align:text-bottom; /*文字垂直向下对齐*/

     CSS 属性: 字体样式(Font Style)
     序号中文说明标记语法
     1 字体样式 {font:font-style font-variant font-weight font-sizefont-family}
     2 字体类型 {font-family:"字体1","字体2","字体3",...}
     3 字体大小 {font-size:数值|inherit| medium| large| larger| x-large| xx-large|small| smaller| x-small| xx-small}
     4 字体风格 {font-style:inherit|italic|normal|oblique}
     5 字体粗细  {font-weight:100-900|bold|bolder|lighter|normal;}
     6 字体颜色   {color:数值;}
     7 阴影颜色 {text-shadow:16位色值}
     8 字体行高   {line-height:数值|inherit|normal;}
     9 字 间 距  {letter-spacing:数值|inherit|normal}
     10 单词间距 {word-spacing:数值|inherit|normal}
     11 字体变形 {font-variant:inherit|normal|small-cps }
     12 英文转换 {text-transform:inherit|none|capitalize|uppercase|lowercase}
     13 字体变形 {font-size-adjust:inherit|none}
     14 字体{font-stretch:condensed|expanded|extra-condensed|extra-expanded|inherit|narrower|normal|semi-condensed|semi-expanded|ultra-condensed|ultra-expanded|wider}
     文本样式(Text Style)
     序号中文说明标记语法
     1 行 间 距 {line-height:数值|inherit|normal;}
     2 文本修饰{text-decoration:inherit|none|underline|overline|line-through|blink}
     3 段首空格   {text-indent:数值|inherit}
     4 水平对齐 {text-align:left|right|center|justify}
     5 垂直对齐 {vertical-align:inherit|top|bottom|text-top|text-bottom|baseline|middle|sub|super}
     6 书写方式 {writing-mode:lr-tb|tb-rl}

  • 相关阅读:
    leetcode 309. Best Time to Buy and Sell Stock with Cooldown
    leetcode 714. Best Time to Buy and Sell Stock with Transaction Fee
    leetcode 32. Longest Valid Parentheses
    leetcode 224. Basic Calculator
    leetcode 540. Single Element in a Sorted Array
    leetcode 109. Convert Sorted List to Binary Search Tree
    leetcode 3. Longest Substring Without Repeating Characters
    leetcode 84. Largest Rectangle in Histogram
    leetcode 338. Counting Bits
    git教程之回到过去,版本对比
  • 原文地址:https://www.cnblogs.com/liuwei-0313/p/9932565.html
Copyright © 2011-2022 走看看