0
我使用bootstrap popover來顯示用戶將鼠標懸停在鏈接/複選框/數據上的數據。twitter popover - 針對不同的彈出式廣告應用不同的css類
如何在我的html中添加一個單獨的css類到不同的彈出窗口,以確保正確顯示特定的彈出窗口。
,我要添加到我下面的HTML代碼如下所示的和稱爲popover_margin_left的CSS類。
這裏是我的html代碼:
<span style="cursor: pointer;"
rel="popover"
data-content="{% trans 'The Test Details that should be included in your document is the data and information that you want displayed to all team members.' %} {% trans 'The Test Details that should be included in your document is the data and information that you want displayed to all team members.' %} {% trans 'The Test Details that should be included in your document is the data and information that you want displayed to all team members.' %}"
data-original-title="{% trans 'Test Details' %}"
data-placement="right">
<input type="checkbox" name="TestDetails" checked="checked" readonly="true" disabled="false" class="checkbox_resize" >
{% trans "Test Details" %}</span>
</input>
</span>
這裏是我的CSS:
/* change default bootstrap popover width & z-index */
.popover {
direction: rtl;
min-width: 375px;
position: fixed;
word-break: normal;
word-wrap: break-word;
z-index: 9999; /* maintain a high z-index to bring the popover in the breadcrumbs forward */
background-color: khaki;
}
.popover_margin_left {
margin-left: -12px;
}
我想你可以在你的html中添加'class:popover_margin_right'。將其添加到您想添加的標籤中。 –
我試過了。除非你的意思不同 - 也許你可以舉個例子。 – user1261774
您是否像使用過''重要''一樣''.popover_margin_left {margin-left:-12px!important; }' –