2017-02-07 40 views
0

不確定是否有人遇到相同的問題。我正在使用multiselect bootstrap。但是,這對我來說並不合適。下拉列表中有子彈,任何人都知道如何刪除它?如何從jquery多選擇結果中刪除子彈

Click here for the image of the problem

<script type="text/javascript" src="js/modernizr-1.5.min.js"></script> 
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> 
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" ></script> 
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/js/bootstrap-multiselect.min.js"></script> 
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/css/bootstrap-multiselect.css" type="text/css"> 

這些是我使用的腳本!在此先感謝:(

+0

請將您的HTML以及所以我們可以看到它是什麼產生 –

+0

.multiselect容器>李{列表樣式:無} –

+0

這是另一個CSS,我使用,不知道這是否是導致問題抱歉....試圖上傳它。 https://drive.google.com/open?id=0BzDjoq6bYax9SVA0TDVvckQ1ajQ – TJA

回答

0

可以在

CSS

<head> 
    <style> 
     ul { 
      list-style: none; 
     } 
    </style> 
</head> 

的jQuery的jQuery的<head></head>標籤之間

做這幾種方法,將您的CSS會在<script></script>標籤標頭以及

$(document).ready(function() { 
    $('ul').css('list-style', 'none'); 
}); 

更好地有一個類與它關聯,因此它不會影響您的所有列表。

+0

我應該把這些意見對不起,以來我碰到的CSS – TJA

0
.element-no-bullets { 
    list-style: none; 
} 
+0

它不工作了一段時間:/,但無論如何thansk您 – TJA

+0

既可能需要走的在你的分層結構中添加或添加!重要的'list-style:none!important;' – oompahlumpa

+0

發佈你的HTML結構,這是你如何得到它的工作..有些東西可能會覆蓋它。 – oompahlumpa