On the binding of vue.js Class and Style & conditional rendering

Why doesn"t fontSize work?

html

<div v-bind:style="{ color: activeColor, fontSize: fontSize }"></div>
data: {
  activeColor: "red",
  fontSize: 30
}

the final rendering result is

<div style="color: red;"></div>
Jun.23,2021

The attribute value of

font-size needs units, so simply setting it to 30 does not work. It can be set to 30px, and the code can be changed to

.
data: {
  activeColor: 'red',
  fontSize: '30px'
}

is fine.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34903-2b46f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34903-2b46f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?