組合框箭頭在Chrome和IE中看起來不錯,但在FF中不太好。 這裏是我的簡單的XPage:如何更改xPage組合框下拉箭頭的背景顏色?
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:comboBox id="inputComboBoxSearch" defaultValue="0" value="0"
style="height:60px; width:120px; text-align:right; box-shadow:none; border-radius:0; display:inline;">
<xp:selectItem itemLabel="Search by" itemValue="0"></xp:selectItem>
<xp:selectItem itemLabel="User" itemValue="1"></xp:selectItem>
<xp:selectItem itemLabel="Date" itemValue="2"></xp:selectItem>
<xp:selectItem itemLabel="City" itemValue="3"></xp:selectItem>
</xp:comboBox>
</xp:view>
And here is how it look like in different browsers. How to change FF style so it is same as on Chrome?
仍然無法正常工作。下拉在FF中看起來很奇怪..任何在應用程序屬性我需要調整? –
@John,如果從樣式中刪除'border-radius:0;',它可以用於Firefox 45.7.0和主題「Bootstrap3」。你不需要設置'createForm =「false」'。只需添加'disableTheme =「true」'就足夠了。所以,@西蒙,你的解決方案是爲約翰的情況下更好的:) –
西蒙的例子不起作用。你在應用程序中啓用了Bootstrap3主題嗎? –