欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

淺談html5標簽css3的常用樣式

  發(fā)布時間:2016-10-20 10:19:52   作者:佚名   我要評論
下面小編就為大家?guī)硪黄獪\談html5標簽css3的常用樣式。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧

<meta name=''>

name:有如下6個值:
application-name:文檔名或者應用名,整個文檔只能包含一個值。
author:文檔作者
description:文檔描述
generator:生成文檔的程序。
keywords:網(wǎng)頁關鍵字,用英文逗號分隔。


<a href="http://www.dbjr.com.cn">腳本之家</a>

href:路徑
<img src="../img/a.jpg" alt="此圖無法顯示" border="1px solid red" width="400" height="250"/>
src:圖片路徑

<table>標簽的屬性
Border 邊框
Cellspacing 表格外邊距
Cellpadding 表格內(nèi)邊距
Align  位置
Bgcolor:背景色
Background:背景圖片
Bordercolor:邊框顏色

table中 <tr></tr>

<td colspan="2"></td>  colspan 跨2列

        rowspan  跨  行

<input type="">

 type值

text  文本

password 密碼

radio 單選

checkbox 多選

reset 重置

file 文件上傳

submit 提交表單

image 圖形提交

button 普通按鈕

分組下拉

XML/HTML Code復制內(nèi)容到剪貼板
  1. <select name="city" id="city">  
  2.     <optgroup label="山東">  
  3.         <option value="yt">煙臺</option>  
  4.         <option value="qd">青島</option>  
  5.         <option value="wh">威海</option>  
  6.     </optgroup>  
  7.     <optgroup label="北京">  
  8.         <option value="bj">bj</option>  
  9.         <option value="tam">tam</option>  
  10.         <option value="zong">zong</option>  
  11.     </optgroup>  
  12. </select>  
文字區(qū)域textarea
XML/HTML Code復制內(nèi)容到剪貼板
  1. <textarea name="textarea" id="textarea" cols="30" rows="10" readonly="readonly"  
  2.         disabled="disabled">  
  3.     1</textarea>  


cols 寬度 rows 高度  readonly 只讀

css樣式
字體、字號:
font(縮寫形式)
font-weight(粗細) 正常(normal) 粗體(bold) 斜體(italic)
font-size(大?。?
font-family(字體系列)
font-style(字體樣式)

字體顏色:
color
opacity (透明度 css3)

行距、對齊等:
line-height (行高)
text-align (對齊)
letter-spacing (字符間距)
text-decoration (文本修飾 )
overflow  超出的部分隱藏
text-overflow

text-overflow文本裁剪  clip裁剪文本時不添加...  ellipsis 裁剪時加...  注意:不換行和over-flow控制

text-shadow 陰影
text-indent

背景屬性:
background (縮寫形式)
background-color(背景色 )
background-image(背景圖 )
background-repeat(背景圖重復方式 )
background-position(位置坐標、偏移量)


列表常用

list-style: none無風格 disc實心圓 circle空心圓 square 實心正方形 decimal 數(shù)字

盒子屬性:
margin(外邊距/邊界)    以上方為主 可寫1、2、4個值
border(邊框)
padding(內(nèi)邊距/填充 )

后可加 -top 等方向

border-radius 邊框圓角

box-shadow  陰影

變形效果:transform

transform-origin 指定變換的起點

none無變換

translate(長度值或百分比) translateX translateY 在水平、垂直方向平移

scale(數(shù)值)scaleX scaleY 在水平方向、垂直方向或兩個方向上縮放

rotate(角度)旋轉(zhuǎn)元素

skew(角度)skewX skewY  在水平方向、垂直方向或兩個方向上使元素傾斜一定的角度

matrix 自定義

過渡效果:transition

transition-property 指定過渡的css屬性 默認值 all

transition-duration 完成過渡的時間

transition-timing-function 指定過渡函數(shù)  緩動效果默認值ease 等同于(0.25, 0.1, 0.25, 1.0)

transition-delay 指定過渡開始出現(xiàn)的延遲時間

@keyframes:定義一個動畫

animation

CSS Code復制內(nèi)容到剪貼板
  1. <style>             
  2.   .t5{   
  3.             transition: 5s ease-out all;   /*過渡   ease    in 加速   out減速*/  
  4.         }/*transition-delay延遲*/  
  5.         .t5:hover{   
  6.   
  7.             transform: skew(45deg,45deg)   
  8.         }   
  9.         @keyframes key {   
  10.             0%{   
  11.                 background-colorred;width200px;height200px;   
  12.             }   
  13.             25%{   
  14.                 background-color: orange;width100px;height100px;transform: rotate(-90deg);   
  15.             }   
  16.             50%{   
  17.                 background-coloryellow;width60px;height60px;transform: none;   
  18.             }   
  19.             75%{   
  20.                 background-colorgreen;width120px;height120px;transform: none;   
  21.             }   
  22.             100%{   
  23.                 background-colorblue;width200px;height200px;transform: rotate(360deg);   
  24.             }   
  25.         }   
  26.         .kt{   
  27.             animation:key 1s;   
  28.            /* animation-iteration-count: infinite;*//*無限循環(huán)*/  
  29.             background-coloryellow;   
  30.             width200px;height200px;   
  31.   
  32.         }   
  33.   
  34.  </style>   
  35.   
  36. <div class="kt t5"></div>  

以上就是小編為大家?guī)淼臏\談html5標簽css3的常用樣式全部內(nèi)容了,希望大家多多支持腳本之家~

相關文章

  • 20個CSS/CSS3常用樣式匯總

    這里我總結了一下平時自己在項目中經(jīng)常用到的20個CSS常用的樣式,都是些個人的經(jīng)驗,這里分享給大家,希望對大家有所幫助
    2014-09-02
  • 詳解CSS3中常用的樣式【基本文本和字體樣式】

    這篇文章主要介紹了CSS3中常用的樣式【基本文本和字體樣式】,本文通過實例代碼給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2020-10-20

最新評論