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 Js Input Readonly</h3> <input type="text" id="my-input" v-model="myValue" readonly> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { myValue: "This is a readonly input." }; } }); </script> <style scoped> input[type="text"] { margin: 10px; padding: 5px; font-size: 1rem; border: 1px solid #ccc; border-radius: 3px; } input[type="text"]:focus { outline: none; border-color: blue; } </style> </body> </html>