最近2018中文字幕在日韩欧美国产成人片_国产日韩精品一区二区在线_在线观看成年美女黄网色视频_国产精品一区三区五区_国产精彩刺激乱对白_看黄色黄大色黄片免费_人人超碰自拍cao_国产高清av在线_亚洲精品电影av_日韩美女尤物视频网站

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問(wèn)題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
css如何實(shí)現(xiàn)提交按鈕

本文小編為大家詳細(xì)介紹“css如何實(shí)現(xiàn)提交按鈕”,內(nèi)容詳細(xì),步驟清晰,細(xì)節(jié)處理妥當(dāng),希望這篇“css如何實(shí)現(xiàn)提交按鈕”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來(lái)學(xué)習(xí)新知識(shí)吧。

創(chuàng)新互聯(lián)公司是一家集網(wǎng)站建設(shè),寶應(yīng)企業(yè)網(wǎng)站建設(shè),寶應(yīng)品牌網(wǎng)站建設(shè),網(wǎng)站定制,寶應(yīng)網(wǎng)站建設(shè)報(bào)價(jià),網(wǎng)絡(luò)營(yíng)銷,網(wǎng)絡(luò)優(yōu)化,寶應(yīng)網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競(jìng)爭(zhēng)力。可充分滿足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時(shí)我們時(shí)刻保持專業(yè)、時(shí)尚、前沿,時(shí)刻以成就客戶成長(zhǎng)自我,堅(jiān)持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實(shí)用型網(wǎng)站。

css實(shí)現(xiàn)提交按鈕的方法:1、通過(guò)HTML

1. 鼠標(biāo)懸停

.button {
   background-color: #4CAF50; /* Green */
   border: none;
   color: white;
   padding: 16px 32px;
   text-align: center;
   text-decoration: none;
   display: inline-block;
   font-size: 16px;
   margin: 4px 2px;
   -webkit-transition-duration: 0.4s; /* Safari */
   transition-duration: 0.4s;
   cursor: pointer;
}

.button1 {
   background-color: white;
   color: black;
   border: 2px solid #4CAF50;
}

.button1:hover {
   background-color: #4CAF50;
   color: white;
}

.button2 {
   background-color: white;
   color: black;
   border: 2px solid #008CBA;
}

.button2:hover {
   background-color: #008CBA;
   color: white;
}



css如何實(shí)現(xiàn)提交按鈕

我們可以使用 :hover 選擇器來(lái)修改鼠標(biāo)懸停在按鈕上的樣式,使用 transition-duration 屬性可以設(shè)置 "hover" 效果的速度。

2. 鼠標(biāo)懸浮帶陰影按鈕

.button {
   background-color: #4CAF50; /* Green */
   border: none;
   color: white;
   padding: 15px 32px;
   text-align: center;
   text-decoration: none;
   display: inline-block;
   font-size: 16px;
   margin: 4px 2px;
   cursor: pointer;
   -webkit-transition-duration: 0.4s; /* Safari */
   transition-duration: 0.4s;
}

.button1:hover {
   box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}


css如何實(shí)現(xiàn)提交按鈕

添加陰影后,按鈕顯得更加立體

3. 鼠標(biāo)懸停后按鈕添加箭頭圖標(biāo)

.button {
 display: inline-block;
 border-radius: 4px;
 background-color: #f4511e;
 border: none;
 color: #FFFFFF;
 text-align: center;
 font-size: 28px;
 padding: 20px;
 width: 200px;
 transition: all 0.5s;
 cursor: pointer;
 margin: 5px;
 vertical-align:middle;
}

.button span {
 cursor: pointer;
 display: inline-block;
 position: relative;
 transition: 0.5s;
}

.button span:after {
 content: '?';
 position: absolute;
 opacity: 0;
 top: 0;
 right: -20px;
 transition: 0.5s;
}

.button:hover span {
 padding-right: 25px;
}

.button:hover span:after {
 opacity: 1;
 right: 0;
}


css如何實(shí)現(xiàn)提交按鈕

4. 按鈕點(diǎn)擊的水波效果

.button {
   position: relative;
   background-color: #4CAF50;
   border: none;
   font-size: 28px;
   color: #FFFFFF;
   padding: 20px;
   width: 200px;
   text-align: center;
   -webkit-transition-duration: 0.4s; /* Safari */
   transition-duration: 0.4s;
   text-decoration: none;
   overflow: hidden;
   cursor: pointer;
}

.button:after {
   content: "";
   background: #90EE90;
   display: block;
   position: absolute;
   padding-top: 300%;
   padding-left: 350%;
   margin-left: -20px!important;
   margin-top: -120%;
   opacity: 0;
   transition: all 0.8s
}

.button:active:after {
   padding: 0;
   margin: 0;
   opacity: 1;
   transition: 0s
}


css如何實(shí)現(xiàn)提交按鈕

5. 按鈕點(diǎn)擊“往下壓”的效果

.button {
 display: inline-block;
 padding: 15px 25px;
 font-size: 24px;
 cursor: pointer;
 text-align: center;  
 text-decoration: none;
 outline: none;
 color: #fff;
 background-color: #4CAF50;
 border: none;
 border-radius: 15px;
 box-shadow: 0 9px #999;
}

.button:hover {background-color: #3e8e41}

.button:active {
 background-color: #3e8e41;
 box-shadow: 0 5px #666;
 transform: translateY(4px);
}


css如何實(shí)現(xiàn)提交按鈕

讀到這里,這篇“css如何實(shí)現(xiàn)提交按鈕”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識(shí)點(diǎn)還需要大家自己動(dòng)手實(shí)踐使用過(guò)才能領(lǐng)會(huì),如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。


網(wǎng)站欄目:css如何實(shí)現(xiàn)提交按鈕
文章起源:http://fisionsoft.com.cn/article/joshjh.html