css - 如何使用 vue transition 實(shí)現(xiàn) ios 按鈕一樣的平滑切換效果
問(wèn)題描述
代碼部分
<template> <p class='register__user-wrapper font-size-default border-box relative'> /* register__user-active 表示當(dāng)前頁(yè)面激活的 a 標(biāo)簽 */<a id='register__personal-user'>個(gè)人用戶</a><a id='register__enterprise-user'>企業(yè)用戶</a> </p></template>
<style>.register__user-wrapper { width: 100%; height: 57px; margin-bottom: 31px; border-radius: 8px; padding: 3px; background-color: #ededed; } .register__user { width: 212px; height: 51px; line-height: 51px; border-radius: 8px; text-align: center; background-color: transparent; color: #4c4c4c; } .register__user-active { background-color: #fff; cursor: pointer; }</style>
問(wèn)題解答
回答1:已經(jīng)自己解決了。
相關(guān)文章:
1. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問(wèn)題2. PHP求助,求幫忙謝謝各位3. extra沒有加載出來(lái)4. mysql - php 如何網(wǎng)址中出現(xiàn)該頁(yè)標(biāo)題?5. javascript - 天貓首頁(yè)首屏數(shù)據(jù)來(lái)源6. javascript - 釘釘?shù)膃xcel, word文件預(yù)覽是直接用的微軟的office web app,不犯法嗎?7. 關(guān)于Mysql數(shù)據(jù)表行轉(zhuǎn)列8. django進(jìn)行數(shù)據(jù)庫(kù)的查詢9. 求救一下,用新版的phpstudy,數(shù)據(jù)庫(kù)過(guò)段時(shí)間會(huì)消失是什么情況?10. mysql - 為什么where條件中or加索引不起作用?
