<body> <input type="text" name="" id=""> <textarea name="" id="" cols="30" rows="10"></textarea> </body>
<style> input { outline: none;/* 取消默认的表单轮廓线 */ border: 1px solid red;/* 设置统一的轮廓线 */ } textarea{ resize: none;/* 禁止拖拽 */ } </style>
<body> <input type="text" name="" id=""> <textarea name="" id="" cols="30" rows="10"></textarea> </body>
<style> input { outline: none;/* 取消默认的表单轮廓线 */ border: 1px solid red;/* 设置统一的轮廓线 */ } textarea{ resize: none;/* 禁止拖拽 */ } </style>
转载于:https://www.cnblogs.com/EricZLin/p/8778826.html