<template> <p class="suibian" :style="paragraphStyle">Jaychou是diao的!</p> </template> <script> export default { data() { return { fontSize: "1.8em" } }, } </script> <style> .suibian{ font-size: v-bind(fontSize); } </style>
CSS中使用v-bind
于 2023-12-04 09:40:20 首次发布