css - 如何使用 vue transition 實現 ios 按鈕一樣的平滑切換效果
問題描述
代碼部分
<template> <p class='register__user-wrapper font-size-default border-box relative'> /* register__user-active 表示當前頁面激活的 a 標簽 */<a id='register__personal-user'>個人用戶</a><a id='register__enterprise-user'>企業用戶</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>
問題解答
回答1:已經自己解決了。
相關文章:
1. linux - Ubuntu下編譯Vim8(+python)無數次編譯失敗2. javascript - h5 video層級太高導致浮在div上面,如何解決?3. mysql ER_BAD_DB_ERROR: Unknown database ’test’4. python運行后沒有任何反饋要怎么排查5. python - pyspider爬pdf爬了一小段時間后就不動了6. python中怎么對列表以區間進行統計?7. 如何合并兩張具有相同結構的mysql表8. css - 請問B站頂部的模糊半透明導航條是怎么實現的呢?9. mysql - 記得以前在哪里看過一個估算時間的網站10. javascript - Ajax加載Json時,移動端頁面向左上角縮小一截兒,加載完成后才正常顯示,這該如何解決?
