css的个人备忘录

    技术2022-05-11  133

    一.css的易忘点 1。字体font font-size-adjust:none|number                                             none:allow every font in seq to it's special font-size                                            number: force .......... font-style:none|italic | oblique text-decoration:none | underline | blink | overline | line-throug font-variant:normal | small-caps text-transform:none | capitalize | uppercase | lowercase letter-spacing: normal | length 【the space's length between the letters】 word-spacing: normal | length  【the space's length between the char 】     2。文本 text  text-overflow:clip | elipsis                                         clip : not show the ......,just the simple cut                                      elipsis: show the ........   vertical-align:baseline  | sub  |super | top | text-top | middle | bottom | text-bottom layout-flow :horizontal | vertical-ideographic                                                          horizontal:output the stream from the left to right                                                                         the next line is under the curr'line                                                            vertical: output the stream from                                                                      top  tobottom  the next line is left to curr   3。背景background background-attachment:scroll | fixed background-repeat:repeated | no-repeat  | repeat-x | repeat-y   4。定位positioning   z-index:auto | number   5。尺寸 dimensions max-height: min-height:   6。布局layout   clear: none | left | right | both float:none | left | right clip : auto | rect(num,num,num,num) overflow : visible | auto | hidden | scroll   display : visibility: it will take the space but will not show it's face     7。外补丁margin   8。轮廓 outline   9。边框 border   border-color-style   : top  -> right ->  botton -> left   10。内容   11。内补丁padding   just the same as the margin   12。列表list list-style-image: url()   list-style-position:outside | inside list-style-type:   13。表格table   border-collapse:separate | collapse border-spacing:length caption-side: bottom | left | right | top empty-cell:show | hide   14。滚动条 scrollbar-3dlight-color    设置或检索滚动条亮边框颜色 scrollbar-highlight-color    设置或检索滚动条3D界面的亮边(ThreedHighlight)颜色 scrollbar-face-color    设置或检索滚动条3D表面(ThreedFace)的颜色 scrollbar-arrow-color   设置或检索滚动条方向箭头的颜色 scrollbar-shadow-color   有 设置或检索滚动条3D界面的暗边(ThreedShadow)颜色 scrollbar-darkshadow-color   有 设置或检索滚动条暗边框(ThreedDarkShadow)颜色 scrollbar-base-color  设置或检索滚动条基准颜色。其它界面颜色将据此自动调整 scrollbar-track-color   设置或检索滚动条的拖动区域(TrackBar)颜色 15。打印 16。声音 17。其它   二。选择符  通配符:*.className 可省略 类型选择符:直接使用html的标签 包含选择符:E1  E2 //被E1包含的E2 ID选择符: 直接使用ID (格式为#idName) 类型选择符:E.className 选择符分组 :用逗号分割就即可同时定义   三。伪类   主要是 link 一组的 加上  first-line first-child letter  first left right lang   四。伪对象 :before :after 五。规则 六。单位

    最新回复(0)