Help us understand the problem. What is going on with this article?

テキスト系のinputタグをまとめて指定したい君へ

More than 1 year has passed since last update.

inputの体裁を整える時にいつもチェックボックスやラジオボタンを巻き込んでしまうめんどくさがりのぼくより愛を込めて

:notを使う(IE8非対応)

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="image"]) {

}

ベタで指定する

input[type=text],
input[type=password],
input[type=search],
input[type=tel],
input[type=url],
input[type=email],
input[type=date],
input[type=time],
input[type=number],
input[type=range],
input[type=color],
input[type=datetime],
input[type=datetime-local],
input[type=month],
input[type=week],
select,
textarea {

}
input[type=checkbox],
input[type=radio] {

}
input[type=hidden],
input[type=file] {

}
input[type=submit],
input[type=reset],
input[type=button],
input[type=image],
button {

}
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした