取消表单轮廓的语法:
input{
outline:none;
}
防止拖拽文本域
textarea{
resize:none;
}
代码例子:
<style>
/* 取消表单轮廓的语法: */
input{
outline: none;
}
/* 防止拖拽文本域 */
textarea{
resize: none;
/* padding: 30px; */
}
</style>
</head>
<body>
<input type="text">
<textarea name="" id="" cols="30" rows="10"></textarea>
</body>
运行结果: