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

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

這個(gè)好難啊。抄代碼都出了bug,如圖~~~求助~~~~~

https://img1.sycdn.imooc.com//5c25bc3a0001ad0e08080442.jpg

<!doctype html>

<html>

<head>

? ? <meta charset="UTF-8">

<title>制作3D旋轉(zhuǎn)導(dǎo)航</title>

<style>

? ? ? ? @import url("http://www.w3cplus.com/demo/css3/base.css");

? ? ? ? /*任務(wù)一:引入本地字體文件*/

? ? ? ? @font-face:Gabriola;

? ? ? ? body {

? ? ? ? ?background-color:#edecec;

? ? ? ? }

? ? ? ??

? ? ? ? /* basic menu styles */

? ? ? ? .nav-menu {

? ? ? ? ? display: block;

? ? ? ? ?background: #74adaa;

? ? ? ? ?width:950px;

? ? ? ? ?margin: 50px auto 150px;

? ? ? ? }

? ? ? ? .nav-menu > li {

? ? ? ? ? display: inline;

? ? ? ? ? float:left;

? ? ? ? ?border-right:1px solid #94c0be;

? ? ? ? }

? ? ? ? .nav-menu > li:last-child {

? ? ? ? ? border-right: none;

? ? ? ? }

? ? ? ? .nav-menu li a {

? ? ? ? ? color: #fff;

? ? ? ? ?display: block;

? ? ? ? ?text-decoration: none;

? ? ? ? ? /*調(diào)用本地字體*/

? ? ? ? ?font-family:Gabriola;

? ? ? ? ? -webkit-font-smoothing: antialiased;

? ? ? ? ?-moz-font-smoothing: antialiased;

? ? ? ? ?font-smoothing: antialiased;

? ? ? ? ?text-transform: capitalize;

? ? ? ? ?overflow: visible;

? ? ? ? ?line-height: 20px;

? ? ? ? ?font-size: 20px;

? ? ? ? ?padding: 15px 30px 15px 31px;

? ? ? ? }

? ? ? ??

? ? ? ??

? ? ? ? .three-d {

? ? ? ? ? /* 任務(wù)三、設(shè)置3D舞臺(tái)布景 */

? ? ? ? ? -webkit-perspective: 200px;

? ? ? ? ? -moz-perspective: 200px;

? ? ? ? ? -ms-perspective: 200px;

? ? ? ? ? -o-perspective: 200px;

? ? ? ? ? ?perspective: 200px;

? ? ? ? ? /*任務(wù)四、設(shè)置3D舞臺(tái)布景過(guò)渡效果*/

? ? ? ? ?-webkit-transition: all .07s linear;

? ? ? ? ?-moz-transition: all .07s linear;

? ? ? ? ?-ms-transition: all .07s linear;

? ? ? ? ?-o-transition: all .07s linear;

? ? ? ? ?transition: all .07s linear;

? ? ? ? ? position: relative;

? ? ? ? }

? ? ? ??

? ? ? ? .three-d:not(.active):hover {

? ? ? ? ? cursor: pointer;

? ? ? ? }

? ? ? ??

? ? ? ? /*任務(wù)五、給不是當(dāng)前狀態(tài)的3D舞臺(tái)的懸浮與聚焦?fàn)顟B(tài)設(shè)置變形效果*/

? ? ? ? .three-d:not(.active):hover .three-d-box,?

? ? ? ? .three-d:not(.active):focus .three-d-box {

? ? ? ? -wekbit-transform: translateZ(-25px) rotateX(90deg);

? -moz-transform: translateZ(-25px) rotateX(90deg);

? -o-transform: translateZ(-25px) rotateX(90deg);

? -ms-transform: translateZ(-25px) rotateX(90deg);

? transform: translateZ(-25px) rotateX(90deg);

? ? ? ? }

? ? ? ??

? ? ? ? .three-d-box {

? ? ? ? ? /*任務(wù)六、給3D舞臺(tái)中“.three-d-box”設(shè)置過(guò)渡與變形效果*/

? ? ? ? ? -webkit-transition: all .3s ease-out;

? -moz-transition: all .3s ease-out;

? -ms-transition: all .3s ease-out;

? -o-transition: all .3s ease-out;

? transition: all .3s ease-out;

? -webkit-transform: translatez(-25px);

? -moz-transform: translatez(-25px);

? -ms-transform: translatez(-25px);

? -o-transform: translatez(-25px);

? transform: translatez(-25px);

? ? ? ? ? -webkit-transform-style: preserve-3d;

? ? ? ? ? -moz-transform-style: preserve-3d;

? ? ? ? ? -ms-transform-style: preserve-3d;

? ? ? ? ? -o-transform-style: preserve-3d;

? ? ? ? ? transform-style: preserve-3d;

? ? ? ? ? -webkit-pointer-events: none;

? ? ? ? ? -moz-pointer-events: none;

? ? ? ? ? -ms-pointer-events: none;

? ? ? ? ? -o-pointer-events: none;

? ? ? ? ? pointer-events: none;

? ? ? ? ? position: absolute;

? ? ? ? ? top: 0;

? ? ? ? ?left: 0;

? ? ? ? ?display: block;

? ? ? ? ?width: 100%;

? ? ? ? ?height: 100%;

? ? ? ? }

? ? ? ??

? ? ? ? /*任務(wù)七、給導(dǎo)航設(shè)置3D前,與3D后變形效果*/

? ? ? ? .front {

? ? ? ? -webkit-transform: rotatex(0deg)?

? ? ? ? translatez(25px);

? -moz-transform: rotatex(0deg) translatez(25px);

? -ms-transform: rotatex(0deg) translatez(25px);

? -o-transform: rotatex(0deg) translatez(25px);

? transform: rotatex(0deg) translatez(25px);

? ? ? ? ?}

? ? ? ??

? ? ? ? .back {

? ? ? ? ? -webkit-transform: rotatex(-90deg) translatez(25px);

? -moz-transform: rotatex(-90deg) translatez(25px);

? -ms-transform: rotatex(-90deg) translatez(25px);

? -o-transform: rotatex(-90deg) translatez(25px);

? transform: rotatex(-90deg) translatez(25px);

? ? ? ? ? color: #FFE7C4;

? ? ? ? }

? ? ? ??

? ? ? ? .front, .back {

? ? ? ? ? display: block;

? ? ? ? ?width: 100%;

? ? ? ? ?height: 100%;

? ? ? ? ?position: absolute;

? ? ? ? ?top: 0;

? ? ? ? ?left: 0;

? ? ? ? ?background: #74adaa;

? ? ? ? ?padding: 15px 30px 15px 31px;

? ? ? ? ?color: white;

? ? ? ? ?-webkit-pointer-events: none;

? ? ? ? ? -moz-pointer-events: none;

? ? ? ? ? -ms-pointer-events: none;

? ? ? ? ? -o-pointer-events: none;

? ? ? ? ? pointer-events: none;

? ? ? ? ? -webkit-box-sizing: border-box;

? ? ? ? ? box-sizing: border-box;

? ? ? ? }

? ? ? ? /*任務(wù)八、設(shè)置導(dǎo)航當(dāng)前狀態(tài)與懸浮狀態(tài)下的背景效果*/

? ? ? ? .nav-menu li .active .front,

? ? ? ? .nav-menu li .active .back,

? ? ? ? .nav-menu li a:hover .front,

? ? ? ? .nav-menu li a:hover .back {

? ? ? ? ?background-color: #51938f;

? -webkit-background-size: 5px 5px;

? background-size: 5px 5px;

? background-position: 0 0, 30px 30px;

? background-image: -webit-linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480), linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480);

? background-image: -moz-linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480), linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480);

background-image: -ms-linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480), linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480);

? background-image: -o-linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480), linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480);

? background-image: linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480), linear-gradient(45deg, #478480 25%, transparent 25%, transparent 75%, #478480 75%, #478480);

? ? ? ? }

? ? ? ? .nav-menu ul {

? ? ? ? ? position: absolute;

? ? ? ? ?text-align: left;

? ? ? ? ?line-height: 40px;

? ? ? ? ?font-size: 14px;

? ? ? ? ?width: 200px;

? ? ? ? ?-webkit-transition: all 0.3s ease-in;

? ? ? ? ? -moz-transition: all 0.3s ease-in;

? ? ? ? ? -ms-transition: all 0.3s ease-in;

? ? ? ? ? -o-transition: all 0.3s ease-in;

? ? ? ? ? transition: all 0.3s ease-in;

? ? ? ? ? -webkit-transform-origin: 0px 0px;

? ? ? ? ? -moz-transform-origin: 0px 0px;

? ? ? ? ? -ms-transform-origin: 0px 0px;

? ? ? ? ? -o-transform-origin: 0px 0px;

? ? ? ? ? transform-origin: 0px 0px;

? ? ? ? ? -webkit-transform: rotateX(-90deg);

? ? ? ? ? -moz-transform: rotateX(-90deg);

? ? ? ? ? -ms-transform: rotateX(-90deg);

? ? ? ? ? -o-transform: rotateX(-90deg);

? ? ? ? ? transform: rotateX(-90deg);

? ? ? ? ? -webkit-backface-visibility: hidden;

? ? ? ? ? -moz-backface-visibility: hidden;

? ? ? ? ? -ms-backface-visibility: hidden;

? ? ? ? ? -o-backface-visibility: hidden;

? ? ? ? ?backface-visibility: hidden;

? ? ? ? }

? ? ? ? /*任務(wù)九、顯示下拉導(dǎo)航菜單,并其設(shè)置一個(gè)變形效果*/

? ? ? ? .nav-menu > li:hover ul {

? ? ? ? ? display: block;

? ? ? ? ? ? -webkit-transform: rotateX(0deg);

? -moz-transform: rotateX(0deg);

? -ms-transform: rotateX(0deg);

? -o-transform: rotateX(0deg);

transform: rotateX(0deg);

? ? ? ? ?}

</style>

</head>

<body>

<div id="nav">

<ul class="nav-menu clearfix unstyled">

<li><a href="#" class="three-d active">

Home

<span class="three-d-box"><span class="front">Home</span><span class="back">Home</span></span>

</a></li>

<li><a href="#" class="three-d">

Services

<span class="three-d-box"><span class="front">Services</span><span class="back">Services</span></span>

</a></li>

<li><a href="#" class="three-d">

Products

<span class="three-d-box"><span class="front">Products</span><span class="back">Products</span></span>

</a></li>

<li><a href="#" class="three-d">

About

<span class="three-d-box"><span class="front">About</span><span class="back">About</span></span>

</a></li>

<li><a href="#" class="three-d">

Contact

<span class="three-d-box"><span class="front">Contact</span><span class="back">Contact</span></span>

</a></li>

<li><a href="#" class="three-d">

Blog

<span class="three-d-box"><span class="front">Blog</span><span class="back">Blog</span></span></a >

<ul class="clearfix unstyled drop-menu">

<li><a href="#" class="three-d">

Html5

<span class="three-d-box"><span class="front">Html5</span><span class="back">Html5</span></span>

</a></li>

<li><a href="#" class="three-d">

Css3

<span class="three-d-box"><span class="front">Css3</span><span class="back">Css3</span></span>

</a></li>

<li><a href="#" class="three-d">

JavaScript

<span class="three-d-box"><span class="front">JavaScript</span><span class="back">JavaScript</span></span>

</a></li>

<li>< a href="#" class="three-d">

Videogames

<span class="three-d-box"><span class="front">Videogames</span><span class="back">Videogames</span></span>

</a></li>

</ul>

</li>

<li><a href="#" class="three-d">

Shop On-line

<span class="three-d-box"><span class="front">Shop On-line</span><span class="back">Shop On-line</span></span>

</a></li>

</ul>

</div>

</body>

</html>


正在回答

1 回答

首先,先在<style>下面添加 * {list-style-type: none;} 去除二級(jí)欄目的項(xiàng)目符號(hào);

其次,就是

https://img1.sycdn.imooc.com//5c370e180001dedd10500227.jpg

這個(gè)<a>標(biāo)簽 被寫成了 < a> ?;

最后是添加 ?

body { margin:0; padding: 0;}

#nav {width:1150px; margin: 0 auto;}(id的命名方式)

.nav-menu li {width: 146px;text-align: center;}

.drop-menu li {text-align: center;} (我總覺(jué)得你的二級(jí)欄目好亂啊)

/*--width: 200px;*/ ?注釋掉 (不曉得有啥用 )

實(shí)在是找不到你的樣式在哪?。?!

https://img1.sycdn.imooc.com//5c371cfb000101ec05300331.jpg

?你自己找到這padding-left: 40px; 刪掉就好了。

如果你也不知道在那,那就加一個(gè) margin:0; 在 ? .nav-menu > li:hover ul ?下面 ? ? ? ?

1 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
十天精通CSS3
  • 參與學(xué)習(xí)       243097    人
  • 解答問(wèn)題       2677    個(gè)

本課程為CSS3入門教程,深刻詳解CSS3知識(shí)讓網(wǎng)頁(yè)穿上絢麗裝備

進(jìn)入課程

這個(gè)好難啊。抄代碼都出了bug,如圖~~~求助~~~~~

我要回答 關(guān)注問(wèn)題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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