css3d 總結
3d transform (3D變形)(rotate skew scale translate)
基礎知識
perspective (視距,景深) perspective-origin 視點)
perspective (視距,景深) perspective-origin (視點)
(變形基點位置transform-origin
(3)transfrom-style:preserve-3d
3D旋轉圖片相簿
3d transform (3D變形)(rotate skew scale translate)3d transform (3D變形)(rotate skew scale translate)
景深) perspective-origin (視點)
(2) 變形基點位置transform-origin
html的程式碼:
<p> </p><p><img src="/static/imghwm/default1.png" data-src="img/p1.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p2.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p3.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p4.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p5.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p6.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p7.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p8.jpg" class="lazy" alt="css 3d 基礎知識" ></p> <p><img src="/static/imghwm/default1.png" data-src="img/p9.jpg" class="lazy" alt="css 3d 基礎知識" ></p>
首先要建造九個盒子放九張圖片,這個很容易理解的。
css的程式碼
body{ background: #6daf39;(背景加了个颜色 主要是好看) } .xj{ perspective:600px;(这是井深) } .kj{ transition: 1s;(运动时间) transform-style:preserve-3d;(实现3d效果 当然这是非常重的) width:200px; height: 300px; margin:80px auto; position: relative; transform: rotateY(0deg) rotateX(0deg) translateZ(-275px); transform-origin: center center -275px; } .mian{ position:absolute; font-size: 50px; color:#fff; text-align: center; line-height: 300px; } .mian:nth-child(1){ width:200px; height: 300px; background: #ff2223; transform: rotateY(0deg)translateZ(275px); } .mian:nth-child(2){ width:200px; height: 300px; background: #ff2223; transform: rotateY(40deg)translateZ(275px); } .mian:nth-child(3){ width:200px; height: 300px; background: #ff2223; transform: rotateY(80deg)translateZ(275px); } .mian:nth-child(4){ width:200px; height: 300px; background: #ff2223; transform: rotateY(120deg)translateZ(275px); } .mian:nth-child(5){ width:200px; height: 300px; background: #ff2223; transform: rotateY(160deg)translateZ(275px); } .mian:nth-child(6){ width:200px; height: 300px; background: #ff2223; transform: rotateY(200deg)translateZ(275px); } .mian:nth-child(7){ width:200px; height: 300px; background: #ff2223; transform: rotateY(240deg)translateZ(275px); } .mian:nth-child(8){ width:200px; height: 300px; background: #ff2223; transform: rotateY(280deg)translateZ(275px); } .mian:nth-child(9){ width:200px; height: 300px; background: #ff2223; transform: rotateY(320deg)translateZ(275px); }
css就到這裡,很簡單的;
js的程式碼
kj.onclick=function () { cishu++; var jiaodu=40*cishu; kj.style.transform="rotateY("+jiaodu+"deg)translateZ(-275px)" }
(kj)就是3d空間,點擊kjjrejs的程式碼
rrreee(kj)就是3d空間,點擊kjjjs ;
3d空間樣式rotateY(這就是上下軸旋轉)translateZ(Z這就是3d立體字軸;讓3d空間後移275px找到軸心位置)更多css 3d 基礎知識 相關文章請關注PHP中文網!
在css中,可用list-style-type属性来去掉ul的圆点标记,语法为“ul{list-style-type:none}”;list-style-type属性可设置列表项标记的类型,当值为“none”可不定义标记,也可去除已有标记。

区别是:css是层叠样式表单,是将样式信息与网页内容分离的一种标记语言,主要用来设计网页的样式,还可以对网页各元素进行格式化;xml是可扩展标记语言,是一种数据存储语言,用于使用简单的标记描述数据,将文档分成许多部件并对这些部件加以标识。

在css中,可以利用cursor属性实现鼠标隐藏效果,该属性用于定义鼠标指针放在一个元素边界范围内时所用的光标形状,当属性值设置为none时,就可以实现鼠标隐藏效果,语法为“元素{cursor:none}”。

转换方法:1、给英文元素添加“text-transform: uppercase;”样式,可将所有的英文字母都变成大写;2、给英文元素添加“text-transform:capitalize;”样式,可将英文文本中每个单词的首字母变为大写。

在css中,rtl是“right-to-left”的缩写,是从右往左的意思,指的是内联内容从右往左依次排布,是direction属性的一个属性值;该属性规定了文本的方向和书写方向,语法为“元素{direction:rtl}”。

在css中,可以利用“font-style”属性设置i元素不是斜体样式,该属性用于指定文本的字体样式,当属性值设置为“normal”时,会显示元素的标准字体样式,语法为“i元素{font-style:normal}”。

在css3中,可以用“transform-origin”属性设置rotate的旋转中心点,该属性可更改转换元素的位置,第一个参数设置x轴的旋转位置,第二个参数设置y轴旋转位置,语法为“transform-origin:x轴位置 y轴位置”。


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

DVWA
Damn Vulnerable Web App (DVWA) 是一個PHP/MySQL的Web應用程序,非常容易受到攻擊。它的主要目標是成為安全專業人員在合法環境中測試自己的技能和工具的輔助工具,幫助Web開發人員更好地理解保護網路應用程式的過程,並幫助教師/學生在課堂環境中教授/學習Web應用程式安全性。 DVWA的目標是透過簡單直接的介面練習一些最常見的Web漏洞,難度各不相同。請注意,該軟體中

Atom編輯器mac版下載
最受歡迎的的開源編輯器

Dreamweaver Mac版
視覺化網頁開發工具

PhpStorm Mac 版本
最新(2018.2.1 )專業的PHP整合開發工具

SecLists
SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。