zoukankan      html  css  js  c++  java
  • CSS标签属性

      text-indexnt:30px;  文本首行缩进

     text-align:center   文本居中

    text-decoration:line-thrugh  删除线

    text-shadow: 1px 1px 1px red  文字阴影

    ---------------------------

      文字控制    font     要  按照顺序写     如 font:italic  bold  20px/30px '黑体';

     font-style:italic 倾斜        font-weight:bold 加粗   font-size:20px 字体的大小      font-family:'黑体' ,'微软雅黑'(安全字体),sans-serif  设置字体   line-height:20px  行高

    -----------------------------------

    bakground-image:url(./tu.png)      background-repeat:no-repeat 不重复

    body{ background-attachment:fixed (图片定位到窗口 窗体固定 )      background-position:reight top(绝对定位)}

    ---可以一下写完 简写   bacground:gray url(./tu.png) no-repeat fixed right top;

    ---------------------------------------------

    设置 大图片背景 

      先引入图片

       background:url(./bg.png)  -164px  -450px;    把一个图片的图标引入到页面

    -------------------------------------

        选择器 {属性:属性值;}

        标签选择器   ID选择器  类选择器    

      优先级     层级选择器 div #id   》id>类》标签

    --------------------------------

      引入方式   4 重种

       内联   嵌套  外部《link  rel="stylesheet"  href="01.css" 》  导入   @import url(./1.css) (导入的CSS必须放在第一行)

    ---------------------------------

     CSS代码初始化:  浏览器兼容

      blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0}body,button,input,select,textarea{font:12px/1.5 tahoma,arial,'Hiragino Sans GB',5b8b4f53,sans-serif}h1,h2,h3,h4,h5,h6{font-size:100%}address,cite,dfn,em,var{font-style:normal}code,kbd,pre,samp{font-family:courier new,courier,monospace}small{font-size:12px}ol,ul{list-style:none}a{text-decoration:none}a:hover{text-decoration:underline}sup{vertical-align:text-top}sub{vertical-align:text-bottom}legend{color:#000}fieldset,img{border:0}button,input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}

    ---------------------------------

      

      

    世上无难事,只怕有心人......
  • 相关阅读:
    项目笔记:导出Excel功能设置导出数据样式
    前后台JSON传值得一个问题和异常处理net.sf.json.JSONException: Unquotted string '"name"'
    ES6中的async函数
    zoj 1203 Swordfish
    C#:excel导入导出
    "undefined reference to strptime"之自己定义strptime函数
    OpenGL蓝宝书第七章:立体天空和纹理折射、双纹理(下)
    HDOJ 5384 Danganronpa AC自己主动机
    Hibernate复习之Hibernate基本介绍
    Java集合---ConcurrentHashMap原理分析
  • 原文地址:https://www.cnblogs.com/gooderic/p/5838127.html
Copyright © 2011-2022 走看看