第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

css常用知識(shí)小梳理一二三

標(biāo)簽:
CSS3
CSS 使用技巧
  • 文字
    1. 水平居中
      text-aligh:center
    2. 垂直居中
      div{height:35px;line-height:35px}//1/n容器高度
  • 容器
    1. 水平居中
      div{width:760px;margin:0 auto}
    2. 垂直居中
      .outer{ position:relative; height:480px; } .inner{ position:absolute; top:50%; height:240px; margin-top:-120px; //然后,将小容器定位为absolute,再将它的左上角沿y轴下移50%,最后将它margin-top上移本身高度的50%即可。 }
  • 图片宽度自适应
    img{max-width:100%}
  • 3D按钮
    button {     background: #888;     border: 1px solid;     border-color: #999 #777 #777 #999;   }
  • font属性

body {     font-family: Arial, Helvetica, sans-serif;     font-size: 13px;     font-weight: normal;     font-variant: small-caps;     font-style: italic;     line-height: 150%;   } body {     font: italic small-caps normal 13px/150% Arial, Helvetica, sans-serif;   }

  • link状态设置顺序
    a:link   a:visited   a:hover   a:active
  • IE条件注释
    <!--[if IE]>     <link rel="stylesheet" type="text/css" href="ie-stylesheet.css" />   < ![endif]-->

  • CSS 优先级
    `
      行内样式 > id样式 > class样式 > 标签名样式

`

  • font-size基准
      body {font-size:62.5%;} //浏览器的缺省字体大小是16px,你可以先将基准字体大小设为10px:
  • Text-transform和Font Variant
    p {text-transform: uppercase}   p {text-transform: lowercase}   p {text-transform: capitalize}
  • reset
    `

`

  • 图片列表
    ul {list-style: none}   ul li {     background-image: url("path-to-your-image");     background-repeat: none;     background-position: 0 0.5em;   }
  • 三角形
    .triangle {     border-color: transparent transparent green transparent;     border-style: solid;     border-width: 0px 300px 300px 300px;     height: 0px;     width: 0px;   }
  • 禁止自动换行
    p { white-space:nowrap; }
  • 用图片替换文字---有时我们需要在标题栏中使用图片,但是又必须保证搜索引擎能够读到标题
    h1 {     text-indent:-9999px;     background:url("h1-image.jpg") no-repeat;     width:200px;     height:50px;   }
  • 焦点突出
      input:focus { border: 2px solid green; }
  • CSS 提示框
      <a class="tooltip" href="#">链接文字 <span>提示文字</span></a> a.tooltip {position: relative}   a.tooltip span {display:none; padding:5px; width:200px;}   a:hover {background:#fff;} /*background-color is a must for IE6*/   a.tooltip:hover span{display:inline; position:absolute;}
  • 固定位置
    body{ margin:0;padding:100px 0 0 0;}   div#header{     position:absolute;     top:0;     left:0;     width:100%;     height:<length>;   }   @media screen{     body>div#header{position: fixed;}   }   * html body{overflow:hidden;}   * html div#content{height:100%;overflow:auto;}
  • 图片预加载
    预加载
  • CSS选择器
    CSS选择器
  • 背景图定位
    定位
點(diǎn)擊查看更多內(nèi)容
3人點(diǎn)贊

若覺得本文不錯(cuò),就分享一下吧!

評(píng)論

作者其他優(yōu)質(zhì)文章

正在加載中
感謝您的支持,我會(huì)繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會(huì)直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊(cè)有機(jī)會(huì)得

100積分直接送

付費(fèi)專欄免費(fèi)學(xué)

大額優(yōu)惠券免費(fèi)領(lǐng)

立即參與 放棄機(jī)會(huì)
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)

舉報(bào)

0/150
提交
取消