zoukankan      html  css  js  c++  java
  • CSS常用代码1

    1. ==========CSS常用代码===========  
    2.   
    3.  字体颜色 : color : #00903A;  
    4.  背景颜色 : background-color : #7CFFE7;  
    5.   
    6. --------------------------------------------------------------------------------  
    7.   
    8.  边框宽度 : border-width : 5px;  
    9.  上边宽度 : border-top-width : 5px;  
    10.  左边宽度 : border-left-width : 5px;  
    11.  右边宽度 : border-right-width : 5px;  
    12.  底边宽度 : border-bottom-width : 5px;  
    13.   
    14. --------------------------------------------------------------------------------  
    15.   
    16.  边框颜色 : border-color : #000FF4;  
    17.  上边颜色 : border-top-color : #10FF01;  
    18.  左边颜色 : border-left-color : #FF3B04;   
    19.  右边颜色 : border-right-color : #FF3CF3;  
    20.  底边颜色 : border-bottom-color : #00D0C3;  
    21.   
    22. --------------------------------------------------------------------------------  
    23.   
    24.  边框样式 : border-style : double; 可替换 dasheddottednone;   
    25.  上边样式 : border-top-style : solid;    
    26.  左边样式 : border-left-style : inset;   
    27.  右边样式 : border-right-style : ridge;    
    28.  底边样式 : border-bottom-style : solid;    
    29.   
    30. --------------------------------------------------------------------------------  
    31.    
    32.  整体宽度 : width : 5px;   
    33.  整体高度 : height : 5px;   
    34.  溢出选项 : overflow : visible; 可替换 hiddenscrollauto;  
    35.   
    36. --------------------------------------------------------------------------------  
    37.    
    38.  内侧边距 : padding : 5px;    
    39.  上内边距 : padding-top : 5px;   
    40.  左内边距 : padding-left : 5px;   
    41.  右内边距 : padding-right : 5px;   
    42.  底内边距 : padding-bottom : 5px;   
    43.   
    44. --------------------------------------------------------------------------------  
    45.    
    46.  外侧边距 : margin : 5px;    
    47.  上外边距 : margin-top : 5px;    
    48.  左外边距 : margin-left : 5px;    
    49.  右外边距 : margin-right : 5px;    
    50.  底外边距 : margin-bottom : 5px;    
    51.   
    52. --------------------------------------------------------------------------------  
    53.    
    54.  文字字体 : font-family : fantasy;    
    55.  文字大小 : font-size : 12pt;    
    56.  文字粗细 : font-weight : bold;    
    57.  文字样式 : font-style : italic;    
    58.  文字变量 : line-height : 110%;     
    59.   
    60. --------------------------------------------------------------------------------  
    61.    
    62.  清除属性 : clear : left; 可替换 rightbothnone;  
    63.  浮动属性 : float : left; 可替换 rightnone;   
    64.  水平排列 : text-align : left; 可替换 rightcenterjustify;  
    65.  文本修饰 : text-decoration : underline; 可替换 overlineunderline overlineline-throughblink;   
    66.  文本缩进 : text-indent : 5em;    
    67.  文字间距 : letter-spacing : 5px;    
    68.  字母间距 : word-spacing : 5px;    
    69.  文本转换 : text-transform : capitalize; 可替换 lowercaseuppercase;   
    70.  垂直排列 : vertical-align : baseline;  可替换 topmiddlebottomtext-toptext-bottomsupersub3em30%;   
    71.   
    72. --------------------------------------------------------------------------------  
    73.    
    74.  背景图片 : background-image : url(tianyi.gif);    
    75.  背景拉伸 : background-repeat : repeat;  可替换  repeat-xrepeat-yno-repeat;   
    76.  背景定位 : background-position : left;  可替换  righttopleft topright bottom30% 50%;   
    77.  附加属性 : background-attachment : fixed; 可替换 scroll;    
    78.   
    79. --------------------------------------------------------------------------------  
    80.    
    81.  显示属性 : display : none; 可替换 blockinlinerun-incompactlist-itemmarker;    
    82.  是否可见 : visibility : visible; 可替换 hidden;    
    83.  资源定位 : position : static; 可替换 relativeabsolutefixed;   
    84.  距离顶部 : top : 5px;   
    85.  距离左边 : left : 5px;   
    86.  距离右边 : right : 5px;    
    87.  距离底边 : bottom : 5px;    
    88.  优先等级 : z-index : 5;  
    89.  鼠标指针 : cursor : crosshair; 可替换 defaultpointermove; text; waithelpn-resizes-resizew-resizee-resizene-resizenw-resizese-resizesw-resize;   
    90.   
    91.   
    92.   
    93. 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/lenhan12345/archive/2006/12/22/1453079.aspx  
  • 相关阅读:
    hdu1316
    MVC中的ViewData、ViewBag和TempData
    linux下性能监控工具
    【翻译自mos文章】执行utlpwdmg.sql之后报ORA-28003, ORA-20001, ORA-20002, ORA-20003, ORA-20004 错误
    HTTP协议的消息头:Content-Type和Accept的作用 转载https://www.cnblogs.com/lexiaofei/p/7289436.html
    HTTP协议的消息头:Content-Type和Accept的作用
    JWT(JSON Web Token) 多网站的单点登录,放弃session 转载https://www.cnblogs.com/lexiaofei/p/7409846.html
    Http协议中get和post的区别
    常用的HTTP请求头与响应头
    浏览器获取自定义响应头response-headers
  • 原文地址:https://www.cnblogs.com/jazzka702/p/1684821.html
Copyright © 2011-2022 走看看