I am using jQuery mobile version 1.4.2. Here is the code snippet from my page.
HTML
<ul data-role="listview" class="ui-nodisc-icon ui-alt-icon">
<li><a href="#" >Real Estate in San Jose</a></li>
</ul>
CSS
.ui-listview li
{
margin: 10px !important;
border-radius: 5px !important;
border-left:1px solid !important;
border-right:1px solid;
background-color: #C0DAE7;
}
.ui-listview li:hover
{
background-color: #EDF6FA;
}
.ui-listview
{
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
height:40px;
}
Upon initial load on mobile, the CSS styling such as background-color
and border
are not applied. It only works after refreshing the page a couple of times.
Note: This issue is specific to Firefox for mobile devices.
What could be causing this behavior? Any advice would be appreciated.