select要素のキャレットのデザインを変更する際に問題があります。 select要素を作成しましたが、キャレットのデザインが同じではありません。選択キャレットデザインを変更する
キャレットのデザインを変更することはできますか?ここで
はデザインです。ここ
私のコードです:
.sub_domain {
position: relative;
margin: 20px;
}
.sub_domain input {
border: 1px solid #e1e1e1;
box-shadow: none;
border-radius: 20px;
padding-right: 94px;
padding-left: 20px;
}
.sub_domain_select {
position: absolute;
top: 0;
right: 0;
height: 100%;
}
.sub_domain_select select {
border: none;
height: 100%;
outline: 0;
width: 95px;
padding: 6px 0 6px 10px;
border-top-right-radius: 2em;
border-bottom-right-radius: 2em;
background: #8cc44c;
}
.sub_domain_select select {
color: #fff;
}
.sub_domain input {
border: 1px solid #e1e1e1;
box-shadow: none;
border-radius: 20px;
padding-right: 94px;
padding-left: 20px;
}
<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="sub_domain">
<input type="text" name="domain_name" placeholder="Domain name" class="form-control" maxlength="20" />
<div class="sub_domain_select">
<select name="domain_zone">
<option value="com">.com</option>
<option value="net">.net</option>
<option value="info">.info</option>
<option value="org">.org</option>
</select>
</div>
</div>
</body>
任意の助けをいただければ幸いです!
出力の種類はいくつですか? – Bhargav
出力情報は必要ありません。画像のようにキャレットデザインを変更する必要があります。@Bhargav –
すべてのブラウザをサポートする方法はありますか?js @weBerなし –