screen_rotation
Copied to Clipboard
<html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app"> <h3>Vue Class Binding Array</h3> <div :class="[activeClass, errorClass]"> <p>Font Awesome icons</p> </div> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { activeClass: 'active', errorClass: 'text-danger' } } }); </script> <style scoped> #app { font-family: Arial, sans-serif; max-width: 600px; margin: 0 auto; background-color: #f1f1f1; padding: 20px; border: 1px solid #ccc; } .active { background-color: #007bff; color: #fff; border-radius: 5px; padding: 8px 12px; text-transform: uppercase; font-weight: bold; } .text-danger { color: yellow; font-size: 16px; font-weight: bold; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); letter-spacing: 0.5px; } </style> </body> </html>