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. Python爬蟲如何爬取span和span中間的內容并分別存入字典里?2. mysql - 分庫分表、分區、讀寫分離 這些都是用在什么場景下 ,會帶來哪些效率或者其他方面的好處3. mysql 查詢身份證號字段值有效的數據4. 視頻文件不能播放,怎么辦?5. flask - python web中如何共享登錄狀態?6. 請教使用PDO連接MSSQL數據庫插入是亂碼問題?7. python - 數據與循環次數對應不上8. 黑客 - Python模塊安全權限9. mysql - 把一個表中的數據count更新到另一個表里?10. node.js - nodejs開發中常用的連接mysql的庫
