2014-04-11 26 views
1

我用下面的HTML的單選按鈕在引導單選按鈕未示出

<div class="radio"> 
    <label> 
    <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked> 
    Option one is this and that&mdash;be sure to include why it's great 
    </label> 
</div> 
<div class="radio"> 
    <label> 
    <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"> 
    Option two can be something else and selecting it will deselect option one 
    </label> 
</div> 

除了標籤,沒有無線電按鈕時所顯示的自舉..

甚至<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">

犯規示出了無線電button.What可以

+0

我們不能告訴你,除非我們看到你的CSS。我們只能想象 – laaposto

+0

我使用bootstraps css本身 – Piya

+2

看看這個小提琴你自己的代碼... http://www.bootply.com/129198我可以看到收音機... – pbenard

回答

2

如果你的單選按鈕沒有顯示的問題,很可能是在你的CSS的地方,你有下面的代碼:

input[type="radio"] { 
 
    display:none; 
 
}

顯示:無;位是讓你的單選按鈕不可見。

+0

這可能適用於一個公平的遇到這個問題的用戶羣很窄 –