html立方体代码及演示例子-z6尊龙平台
代码
2023年05月20日 23:35
174
小糯草
左
上
下
代码解析:
1. ````: html5的文档类型声明。
2. ````: html文档的根元素。
3. ````: 文档头部,包含了页面的元数据和引用的外部资源。
4. ``
``: 页面的标题,显示在浏览器的标签页上。</p><p>5. ``<style>``: 内嵌的<a target="_blank" href="https://sn.qunapu.com/tags-608.html"style="color:#d19d00">css样式</a>表,定义了立方体的外观。</p><p>6. ``.container``: 容器元素的<a target="_blank" href="https://sn.qunapu.com/tags-607.html"style="color:#d19d00">css</a>类选择器,包含了整个立方体。</p><p>7. ``transform-style: preserve-3d;``: 3d变形的父容器中的css属性,保留了子元素的3d变形。</p><p>8. ``transform: rotatey(45deg) rotatex(45deg);``: 3d旋转的父容器中的css属性,对立方体进行了x轴和y轴的旋转。</p><p>9. ``perspective: 1000px;``: 父容器的css属性,为3d变形定义了观察者的距离(视距)。</p><p>10. ``.cube``: 立方体元素的css类选择器。</p><p>11. ``transform-style: preserve-3d;``: 立方体元素的css属性,保留了子元素的3d变形。</p><p>12. ``.cube__face``: 立方体面元素的css类选择器。</p><p>13. ``transform: translatez(100px);``: 前面和后面面元素的css属性,将其沿z轴向前或向后平移100像素。</p><p>14. ``transform: translatez(-100px) rotatey(180deg);``: 后面面元素的css属性,将其沿z轴向后平移100像素,并绕y轴旋转180度,使其面朝后方。</p><p>15. ``transform: rotatey(90deg) translatex(100px);``: 右面面元素的css属性,将其绕y轴旋转90度,并沿x轴向右平移100像素。</p><p>16. ``transform: rotatey(-90deg) translatex(-100px);``: 左面面元素的css属性,将其绕y轴旋转-90度(即90度逆时针旋转),并沿x轴向左平移100像素。</p><p>17. ``transform: rotatex(90deg) translatey(-100px);``: 顶部面元素的css属性,将其绕x轴旋转90度,并沿y轴向上平移100像素。</p><p>18. ``transform: rotatex(-90deg) translatey(100px);``: 底部面元素的css属性,将其绕x轴旋转-90度(即90度顺时针旋转),并沿y轴向下平移100像素。</p><p><br/></p><p>以上就是这个立方体代码示例的详细解释。</p><p><br/></p><blockquote style='border:1px #d0d4c8 dashed;background-color:#f4f5f6'><p>专题推荐:</p><p><a href="https://sn.qunapu.com/kw/33.html" target="_balnk">女生最吃香的十大专业</a></p><p><a href="https://sn.qunapu.com/kw/32.html" target="_balnk">1-5元学校门口小吃</a></p><p><a href="https://sn.qunapu.com/kw/31.html" target="_balnk">创业小项目 个人创业在家</a></p><p><a href="https://sn.qunapu.com/kw/30.html" target="_balnk">开店项目</a></p><p><a href="https://sn.qunapu.com/kw/29.html" target="_balnk">在家办厂小型加工厂</a></p><p><a href="https://sn.qunapu.com/kw/28.html" target="_balnk">乡镇冷门暴利生意</a></p><p><a href="https://sn.qunapu.com/kw/27.html" target="_balnk">50个适合县城开的实体店</a></p><p><a href="https://sn.qunapu.com/kw/26.html" target="_balnk">适合小区做的44个生意</a></p></blockquote></br><hr/><div class="ycnr">部份内容隐藏请<a href="https://sn.qunapu.com/#xylogin"><font color="red">会员登录</font></a>查看</div></div></div>
<p id="tag-wrap" class="tag-wrap">
<i class="fa fa-tags"></i>标签:
<span class="padding"><a class="tags br" href="https://sn.qunapu.com/tags-654.html" title="html立方体代码">html立方体代码</a></span>
</p>
<div class="nextlog">
<a href="https://sn.qunapu.com/sn/847.html" class="prev">
<small>上一篇</small>
<i class="fa fa-angle-left fa-3x"></i>
<h2>十大冷门暴利生意,巨大的收益潜力与价值</h2>
</a>
<a href="https://sn.qunapu.com/sn/849.html" class="next">
<small>下一篇</small>
<h2>html3d立体旋转页面代码例子演示</h2>
<i class="fa fa-angle-right fa-3x"></i>
</a>
</div>
<div class="link-box">
<p class="title">相关文章</p>
<ul class="loglist">
</ul>
</div>
</div>
</div>
</div>
<div id="sidebar">
<section id="randomnews_dz" class="widget widget_randomnews_dz sb br mb">
<h3><span>分类猜你喜欢</span></h3>
<ul class="widget-content randomnews_dz"><li><a title="mark元素的主要功能及在html5 中的使用mark元素例子" href="https://sn.qunapu.com/sn/795.html">mark元素的主要功能及在html5 中的使用mark元素例子</a></li><li><a title="html a标签target属性" href="https://sn.qunapu.com/sn/804.html">html a标签target属性</a></li><li><a title="mark元素使用红色代表及例子" href="https://sn.qunapu.com/sn/805.html">mark元素使用红色代表及例子</a></li><li><a title="mark元素使用红色代表及例子" href="https://sn.qunapu.com/sn/806.html">mark元素使用红色代表及例子</a></li><li><a title="meter元素颜色,可以使用css样式来设置颜色" href="https://sn.qunapu.com/sn/807.html">meter元素颜色,可以使用css样式来设置颜色</a></li></ul>
</section>
<section id="hotnews_dz" class="widget widget_hotnews_dz sb br mb">
<h3><span>分类热门</span></h3>
<ul class="widget-content hotnews_dz"><li><a title="css高亮效果,css 创建不同高亮效果具体方法及例子" href="https://sn.qunapu.com/sn/809.html">css高亮效果,css 创建不同高亮效果具体方法及例子</a></li><li><a title="一个简单的html放烟花特效的代码" href="https://sn.qunapu.com/sn/815.html">一个简单的html放烟花特效的代码</a></li><li><a title="星空特效的html代码示例" href="https://sn.qunapu.com/sn/818.html">星空特效的html代码示例</a></li><li><a title="html图片旋转怎么设置代码示例演示" href="https://sn.qunapu.com/sn/850.html">html图片旋转怎么设置代码示例演示</a></li><li><a title="json 在线解析演示" href="https://sn.qunapu.com/sn/872.html">json 在线解析演示</a></li><li><a title="视频嵌入代码,简单的 video 嵌入代码例子" href="https://sn.qunapu.com/sn/810.html">视频嵌入代码,简单的 video 嵌入代码例子</a></li><li><a title="html5菜鸟教程学习基本步骤" href="https://sn.qunapu.com/sn/827.html">html5菜鸟教程学习基本步骤</a></li><li><a title="html的地球特效代码示例代码" href="https://sn.qunapu.com/sn/837.html">html的地球特效代码示例代码</a></li><li><a title="html做一个登录注册页面,用 html 和 css 实现" href="https://sn.qunapu.com/sn/843.html">html做一个登录注册页面,用 html 和 css 实现</a></li><li><a title="html3d地球代码示例代码" href="https://sn.qunapu.com/sn/838.html">html3d地球代码示例代码</a></li></ul>
</section>
<section id="kelrank_hotviews" class="widget widget_kelrank_hotviews sb br mb">
<h3><span>热门文章</span></h3>
<div class="widget-content kelrank_hotviews">
<ul class="rank rank-simple">
<li class="rank-1">
<span class="rank-num"><i>1</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/94.html" target="_blank">暴利行业中没人愿意干的68个暴利行业</a></p>
</li>
<li class="rank-2">
<span class="rank-num"><i>2</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/86.html" target="_blank">不起眼生意背后的2021利润很吓人的冷门生意</a></p>
</li>
<li class="rank-3">
<span class="rank-num"><i>3</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/160.html" target="_blank">穷人创业适合穷人翻身的10个行业</a></p>
</li>
<li class="rank-4">
<span class="rank-num"><i>4</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/120.html" target="_blank">理论上探讨下2022年最可能暴涨的东西,仅供参考</a></p>
</li>
<li class="rank-5">
<span class="rank-num"><i>5</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/208.html" target="_blank">开店创业低成本适合女孩开的店</a></p>
</li>
<li class="rank-6">
<span class="rank-num"><i>6</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/162.html" target="_blank">穷人翻身创业适合穷人翻身的10个行业</a></p>
</li>
<li class="rank-7">
<span class="rank-num"><i>7</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/113.html" target="_blank">简单得只需一辆轿车就可做的生意</a></p>
</li>
<li class="rank-8">
<span class="rank-num"><i>8</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/90.html" target="_blank">在家躺着赚钱的43种躺着赚钱的方法</a></p>
</li>
<li class="rank-9">
<span class="rank-num"><i>9</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/533.html" target="_blank">小区十大冷门暴利生意,20种排行前十生意</a></p>
</li>
<li class="rank-10">
<span class="rank-num"><i>10</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/213.html" target="_blank">小吃摊创业自学摆摊小吃100种</a></p>
</li>
</ul></div>
</section>
<section id="zf_postarticle" class="widget widget_zf_postarticle sb br mb">
<div class="widget-content zf_postarticle"><div class="postarticle"><ul class="tabe"><li><h3 class="tit">随机文章</h3></li><li><h3 class="tit">热门文章</h3></li><li><h3 class="tit">最新文章</h3></li></ul><div class="tabecon"><ul><li><i class="num1">1</i><a href="https://sn.qunapu.com/sn/77.html" title="加工产品常见的农村包销路的加工厂">加工产品常见的农村包销路的加工厂</a></li><li><i class="num2">2</i><a href="https://sn.qunapu.com/sn/82.html" title="靠嘴靠手一万元以内或一万元左右的小生意">靠嘴靠手一万元以内或一万元左右的小生意</a></li><li><i class="num3">3</i><a href="https://sn.qunapu.com/sn/102.html" title="小生意中非常不起眼的暴利小生意">小生意中非常不起眼的暴利小生意</a></li><li><i class="num4">4</i><a href="https://sn.qunapu.com/sn/103.html" title="养殖项目中适合穷人的18个创业项目投资小养殖项目">养殖项目中适合穷人的18个创业项目投资小养殖项目</a></li><li><i class="num5">5</i><a href="https://sn.qunapu.com/sn/106.html" title="小本创业适合穷人的18个创业项目投资小创业项目">小本创业适合穷人的18个创业项目投资小创业项目</a></li><li><i class="num6">6</i><a href="https://sn.qunapu.com/sn/152.html" title="读书选专业女生最吃香的十大专业">读书选专业女生最吃香的十大专业</a></li><li><i class="num7">7</i><a href="https://sn.qunapu.com/sn/153.html" title="聊聊创业小项目 个人创业热门项目">聊聊创业小项目 个人创业热门项目</a></li><li><i class="num8">8</i><a href="https://sn.qunapu.com/sn/159.html" title="定期储蓄的定期存款三大忌">定期储蓄的定期存款三大忌</a></li></ul><ul><li><i class="num1">1</i><a href="https://sn.qunapu.com/sn/94.html" title="暴利行业中没人愿意干的68个暴利行业">暴利行业中没人愿意干的68个暴利行业</a></li><li><i class="num2">2</i><a href="https://sn.qunapu.com/sn/86.html" title="不起眼生意背后的2021利润很吓人的冷门生意">不起眼生意背后的2021利润很吓人的冷门生意</a></li><li><i class="num3">3</i><a href="https://sn.qunapu.com/sn/160.html" title="穷人创业适合穷人翻身的10个行业">穷人创业适合穷人翻身的10个行业</a></li><li><i class="num4">4</i><a href="https://sn.qunapu.com/sn/120.html" title="理论上探讨下2022年最可能暴涨的东西,仅供参考">理论上探讨下2022年最可能暴涨的东西,仅供参考</a></li><li><i class="num5">5</i><a href="https://sn.qunapu.com/sn/208.html" title="开店创业低成本适合女孩开的店">开店创业低成本适合女孩开的店</a></li><li><i class="num6">6</i><a href="https://sn.qunapu.com/sn/162.html" title="穷人翻身创业适合穷人翻身的10个行业">穷人翻身创业适合穷人翻身的10个行业</a></li><li><i class="num7">7</i><a href="https://sn.qunapu.com/sn/113.html" title="简单得只需一辆轿车就可做的生意">简单得只需一辆轿车就可做的生意</a></li><li><i class="num8">8</i><a href="https://sn.qunapu.com/sn/90.html" title="在家躺着赚钱的43种躺着赚钱的方法">在家躺着赚钱的43种躺着赚钱的方法</a></li></ul><ul><li><i class="num1">1</i><a href="https://sn.qunapu.com/sn/1087.html" title="一年四季不愁销路的生意:案例分析与经营策略">一年四季不愁销路的生意:案例分析与经营策略</a></li><li><i class="num2">2</i><a href="https://sn.qunapu.com/sn/1086.html" title="不愁销路的10个生意——以数学辅导为例">不愁销路的10个生意——以数学辅导为例</a></li><li><i class="num3">3</i><a href="https://sn.qunapu.com/sn/1085.html" title="很多人梦寐以求的适合懒人开的店">很多人梦寐以求的适合懒人开的店</a></li><li><i class="num4">4</i><a href="https://sn.qunapu.com/sn/1084.html" title="three.js开发指南:从入门到精">three.js开发指南:从入门到精</a></li><li><i class="num5">5</i><a href="https://sn.qunapu.com/sn/1083.html" title="不愁销路的10个生意特点特色分析">不愁销路的10个生意特点特色分析</a></li><li><i class="num6">6</i><a href="https://sn.qunapu.com/sn/1082.html" title="不愁销路的10个生意特点及不愁销路原因">不愁销路的10个生意特点及不愁销路原因</a></li><li><i class="num7">7</i><a href="https://sn.qunapu.com/sn/1081.html" title="养鸡1000只需投资多少?养鸡创业者的账本与投资策略">养鸡1000只需投资多少?养鸡创业者的账本与投资策略</a></li><li><i class="num8">8</i><a href="https://sn.qunapu.com/sn/1080.html" title="一年四季都能做:地摊创业适合一年四季的地摊生意">一年四季都能做:地摊创业适合一年四季的地摊生意</a></li></ul></div></div></div>
</section>
<section id="kelrank_hotcomms" class="widget widget_kelrank_hotcomms sb br mb">
<h3><span>热评文章</span></h3>
<div class="widget-content kelrank_hotcomms">
<ul class="rank rank-simple">
<li class="rank-1">
<span class="rank-num"><i>1</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/256.html" target="_blank">小本开店创业适合乡镇开的实体店</a></p>
</li>
<li class="rank-2">
<span class="rank-num"><i>2</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/512.html" target="_blank">13个农村暴利小生意(最适合农村人做的10种小生意)</a></p>
</li>
<li class="rank-3">
<span class="rank-num"><i>3</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/768.html" target="_blank">适合50岁女人的创业项目,掌握技能创新创业</a></p>
</li>
<li class="rank-4">
<span class="rank-num"><i>4</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/1024.html" target="_blank">适合45至55岁创业项目:探索四种模式与成功案例</a></p>
</li>
<li class="rank-5">
<span class="rank-num"><i>5</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/257.html" target="_blank">适合乡镇开的实体店有哪些?</a></p>
</li>
<li class="rank-6">
<span class="rank-num"><i>6</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/513.html" target="_blank">只需一辆轿车就可做的生意有哪些</a></p>
</li>
<li class="rank-7">
<span class="rank-num"><i>7</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/769.html" target="_blank">适合50岁女人创业项目:12种赚钱门路</a></p>
</li>
<li class="rank-8">
<span class="rank-num"><i>8</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/1025.html" target="_blank">适合45至55岁创业项目:发现新的商业机会</a></p>
</li>
<li class="rank-9">
<span class="rank-num"><i>9</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/258.html" target="_blank">养殖户养20头羊一年赚多少钱?</a></p>
</li>
<li class="rank-10">
<span class="rank-num"><i>10</i></span>
<p class="rank-title"><a href="https://sn.qunapu.com/sn/514.html" target="_blank">12种赚小孩的钱的特色生意</a></p>
</li>
</ul></div>
</section> </div>
</div>
</div>
<div id="footerbar">
<div class="wrap">
<span><a href="https://sn.qunapu.com/">糯草学堂</a>z6尊龙平台 copyright糯草学堂.some rights reserved.粤公网安备 44170202000251号 <a href="https://beian.miit.gov.cn/"target="_blank">粤icp备15035385号-2 </a><a href="/1088.html"target="_blank">免责声明</a></span>
</div>
</div>
<div id="backtop"><span class="fa fa-chevron-circle-up"></span></div>
<script src="https://sn.qunapu.com/zb_users/theme/suiranx_news/script/common.js" type="text/javascript"></script>
<script src="https://sn.qunapu.com/zb_users/theme/suiranx_news/script/scrolltxt.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#croll").textslider({line: 1, speed: 1000, timer: 3000});
})
</script>
<script>
var swiper = new swiper('.swiper-container', {
pagination: '.swiper-pagination',
nextbutton: '.swiper-button-next',
prevbutton: '.swiper-button-prev',
centeredslides: true,
autoplay: 3500,
slidesperview: 1,
paginationclickable: true,
autoplaydisableoninteraction: false,
spacebetween: 0,
loop: true
});
</script>
<script>
(function(){
var bp = document.createelement('script');
var curprotocol = window.location.protocol.split(':')[0];
if (curprotocol === 'https'){
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else{
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getelementsbytagname("script")[0];
s.parentnode.insertbefore(bp, s);
})();
</script>
<script>
$('.tabe li:first-child').addclass('active');
$('.tabecon ul:first-child').show();
let key = 0;
let base_num = 1000;
let speed = number('5') * 1000;
if(isnan(speed)){
speed = 0;
}
let playtimer = null;
if(speed >= base_num){
playtimer = setinterval(auto_tabs,speed);
}
function tabs(tabtit,on,tabcon){
$(tabtit).children().mouseenter(function() {
$(this).addclass(on).siblings().removeclass(on);
let index = key = $(tabtit).children().index(this);
$(tabcon).children().eq(index).fadein(200).siblings().fadeout(0);
if(speed >= base_num && playtimer !== null){
clearinterval(playtimer);
}
});
$(tabtit).children().mouseleave(function() {
if(speed >= base_num && playtimer !== null){
playtimer = setinterval(auto_tabs,speed)
}
});
$(tabcon).mouseenter(function() {
if(speed >= base_num && playtimer !== null){
clearinterval(playtimer);
}
});
$(tabcon).mouseleave(function() {
if(speed >= base_num && playtimer !== null){
playtimer = setinterval(auto_tabs,speed)
}
});
};
function auto_tabs(tabtit='.tabe',on='active',tabcon='.tabecon'){
if(key >= 3){
key = 0;
}
$(tabtit).children().eq(key).addclass(on).siblings().removeclass(on);
$(tabcon).children().eq(key).fadein(200).siblings().fadeout(0);
key ;
};
tabs('.tabe','active','.tabecon');
</script>
<script>
(function(){
var el = document.createelement("script");
el.src = "https://lf1-cdn-tos.bytegoofy.com/goofy/ttzz/push.js?62f2655eddc2caf977f879370f942343f93744b2e3029f816c57b79de106d2253d72cd14f8a76432df3935ab77ec54f830517b3cb210f7fd334f50ccb772134a";
el.id = "ttzz";
var s = document.getelementsbytagname("script")[0];
s.parentnode.insertbefore(el, s);
})(window)
</script>
<script type="text/javascript" src="https://sn.qunapu.com/zb_users/plugin/jenson_highlight/highlight/highlight.min.js"></script><script>document.addeventlistener('domcontentloaded', (event) => {document.queryselectorall('pre').foreach((el) => {hljs.highlightelement(el);});});</script><script src="https://sn.qunapu.com/zb_users/plugin/lazyload/js/lazyload.min.js"></script>
<script>
$(function() {
$("img.lz-loading, img[src$='loading.gif']").lazyload({
// placeholder:"https://sn.qunapu.com/zb_users/plugin/lazyload/img/grey.gif",
effect:"fadein",
failurelimit : 30
});
});
</script>
<script type='text/javascript'>
document.body.addeventlistener('copy', function (e) {
if (window.getselection().tostring() && window.getselection().tostring().length > 2) {
setclipboardtext(e);
alert('很好!非常好!');
}
});
function setclipboardtext(event) {
var clipboarddata = event.clipboarddata || window.clipboarddata;
if (clipboarddata) {
event.preventdefault();
var htmldata = ''
window.getselection().tostring()
'本文来自糯草学堂' window.location.href
var textdata = ''
window.getselection().tostring()
'本文来自糯草学堂' window.location.href
clipboarddata.setdata('text/html', htmldata);
clipboarddata.setdata('text/plain',textdata);
}
}
</script><script>function createwatermark() {const svgstr =`<svg xmlns="http://www.w3.org/2000/svg" width="380" height="160"><text y="80" x="50" stroke="#e6e0e0" stroke-opacity="0.1" fill="#f1dada" fill-opacity="0.3" transform="rotate(-10)" font-size="12">糯草学堂- sn.qunapu.com</text></svg>`;return `data:image/svg xml;base64,${window.btoa(unescape(encodeuricomponent(svgstr)))}`;}const watermakr = document.createelement("div");watermakr.classname = "jz52_pagewatermark";watermakr.style.backgroundimage = `})`;document.body.appendchild(watermakr);const config = { attributes: true, childlist: true, subtree: true };const callback = function (mutationslist, observer) {for (let mutation of mutationslist) {mutation.removednodes.foreach(function (item) {if (item === watermakr) {document.body.appendchild(watermakr);}});}};const targetnode = document.body;const observer = new mutationobserver(callback);observer.observe(targetnode, config);</script><script type="text/javascript">var zbpath="https://sn.qunapu.com/", codeall = 1, z6尊龙平台 copyrights = 0, copytips = "本段代码来自 糯草学堂", codetext = 0, textheight = 200, sbutton = "1|1|1|1", codefold = 0; document.writeln(unescape("<script src=\"" zbpath "zb_users/plugin/codemo_vip/js/main.js?v=3.3.0\" type=\"text/javascript\"></script>"));</script>
</body>
</html>