Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ページにテキスト フィールドがあり、オートフォーカスをオンに設定しているので、テキスト フィールドに入力するカーソルが配置されます。私の問題はこれです...
私はborder-radiusを30pxに設定して、ブラウザでテキストフィールドがもう少しスマートに見えるようにしました。ばかげているように見えます。
CSS を使用してこれを変更し、オートフォーカスがデフォルトの四角形のテキスト フィールドではなく、湾曲したテキスト フィールドを強調表示する方法はありますか?
ありがとう
input[type='text']:focus{ border-radius:30px; outline:none; } <input type="text" autofocus="true"/>
デモ