這篇“html5標簽css3的常用樣式有哪些”文章的知識點大部分人都不太理解,所以小編給大家總結了以下內(nèi)容,內(nèi)容詳細,步驟清晰,具有一定的借鑒價值,希望大家閱讀完這篇文章能有所收獲,下面我們一起來看看這篇“html5標簽css3的常用樣式有哪些”文章吧。
創(chuàng)新互聯(lián)于2013年創(chuàng)立,是專業(yè)互聯(lián)網(wǎng)技術服務公司,擁有項目成都網(wǎng)站制作、成都網(wǎng)站設計網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元永新做網(wǎng)站,已為上家服務,為永新各地企業(yè)和個人服務,聯(lián)系電話:028-86922220
<meta name=''>
name:有如下6個值:
application-name:文檔名或者應用名,整個文檔只能包含一個值。
author:文檔作者
description:文檔描述
generator:生成文檔的程序。
keywords:網(wǎng)頁關鍵字,用英文逗號分隔。
<a href="http://www.jb51.net">腳本之家</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)容到剪貼板
<select name="city" id="city">
<optgroup label="山東">
<option value="yt">煙臺</option>
<option value="qd">青島</option>
<option value="wh">威海</option>
</optgroup>
<optgroup label="北京">
<option value="bj">bj</option>
<option value="tam">tam</option>
<option value="zong">zong</option>
</optgroup>
</select>
文字區(qū)域textarea
XML/HTML Code復制內(nèi)容到剪貼板
<textarea name="textarea" id="textarea" cols="30" rows="10" readonly="readonly"
disabled="disabled">
1</textarea>
cols 寬度 rows 高度 readonly 只讀
css樣式
字體、字號:
font(縮寫形式)
font-weight(粗細) 正常(normal) 粗體(bold) 斜體(italic)
font-size(大?。?/p>
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(角度)旋轉元素
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)容到剪貼板
<style>
.t5{
transition: 5s ease-out all; /*過渡 ease in 加速 out減速*/
}/*transition-delay延遲*/
.t5:hover{
transform: skew(45deg,45deg)
}
@keyframes key {
0%{
background-color: red;width: 200px;height: 200px;
}
25%{
background-color: orange;width: 100px;height: 100px;transform: rotate(-90deg);
}
50%{
background-color: yellow;width: 60px;height: 60px;transform: none;
}
75%{
background-color: green;width: 120px;height: 120px;transform: none;
}
100%{
background-color: blue;width: 200px;height: 200px;transform: rotate(360deg);
}
}
.kt{
animation:key 1s;
/* animation-iteration-count: infinite;*//*無限循環(huán)*/
background-color: yellow;
width: 200px;height: 200px;
}
</style>
<div class="kt t5"></div>
以上就是關于“html5標簽css3的常用樣式有哪些”這篇文章的內(nèi)容,相信大家都有了一定的了解,希望小編分享的內(nèi)容對大家有幫助,若想了解更多相關的知識內(nèi)容,請關注創(chuàng)新互聯(lián)行業(yè)資訊頻道。
網(wǎng)站欄目:html5標簽css3的常用樣式有哪些
瀏覽地址:http://bm7419.com/article14/jjsege.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設計公司、域名注冊、微信公眾號、網(wǎng)站建設、網(wǎng)站營銷、App開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)