第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

請(qǐng)問(wèn)為什么radion和checkbox的inline總是對(duì)不齊呢?

<!doctype?html>
<html>
<head>
????<meta?charset="UTF-8">
????<title>表單控件——表單控件大小</title>
<link?rel="stylesheet"?>
</head>
<body>
<form?role="form">
??<h3>案例1</h3>
??<div?class="checkbox?checkbox-inline">
????<label>
??????<input?type="checkbox"?value="">
??????記住密碼
????</label>
??</div>
??<div?class="checkbox?checkbox-inline">
????<label>
??????<input?type="checkbox"?value="">
??????記住密碼
????</label>
??</div>
??<div?class="checkbox?checkbox-inline">
????<label>
??????<input?type="checkbox"?value="">
??????記住密碼
????</label>
??</div>
??<br>
??<div?class="radio?radio-inline">
????<label>
??????<input?type="radio"?name="optionsRadios"?id="optionsRadios1"?value="love"?>
??????喜歡
????</label>
??</div>
????<div?class="radio?radio-inline">
????<label>
??????<input?type="radio"?name="optionsRadios"?id="optionsRadios2"?value="hate">
??????不喜歡
????</label>
??</div>
<div?class="radio?radio-inline">
????<label>
??????<input?type="radio"?name="optionsRadios"?id="optdionsRadios2"?value="hate">
??????不喜歡
????</label>
??</div>
??
</form>?????
</body>
</html>

老師:為什么顯示出來(lái)時(shí)第一個(gè)和后面的對(duì)不齊呢?如圖:

5493d7c50001c18904030176.jpg

正在回答

3 回答

測(cè)試。。。

0 回復(fù) 有任何疑惑可以回復(fù)我~

.checkbox-inline{padding:0;margin:0 15px 0 0; line-height: 20px;min-height: 20px;}

input[type='checkbox'], input[type='radio'] {margin: -2px 5px 0 0;line-height: 20px;}

具體值根據(jù)需要調(diào)節(jié)


0 回復(fù) 有任何疑惑可以回復(fù)我~

好吧,我再看一下節(jié)就找到答案了,居然是不要前面那個(gè)radio或者checkbox的class就可以了的。

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

請(qǐng)問(wèn)為什么radion和checkbox的inline總是對(duì)不齊呢?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)