我对使用 jQuery mobile 开发移动网络应用程序非常陌生。我试图在 data-role="content" 内创建一个环形交叉路口。问题是,环形交叉口高度没有响应,它不会相应地改变屏幕高度。谁能帮我?
这是我的html
<body>
<div data-role="page">
<div data-role="header">
<h1>Main App</h1>
</div>
<div align="center" data-role="content" style="width: 100% !important; min-height:200px !important " id="blockCarousel">
<ul id="idCarousel" data-role="listview">
//li items goes here through AJAX
</ul>
<div id="animateTest" class>
<p id="containerDesc" class="nameItem" ></p>
</div>
</div>
<a href="#" style="display:none" class="next">Next please</a>
<a href="#" style="display:none" class="prev">Prev please</a>
</div>
我的CSS:
html{
position:relative !important;
text-align:center !important;
height:100% !important;
}
body{
//height:100% !important;
background: rgba(255,255,255,.4) !important ;
}
.roundabout-holder {
list-style: none !important;
padding: 0 !important;
margin: 0 !important;
height: auto !important;
width: 75% !important;
top: 0 !important;
}
.roundabout-moveable-item {
height: 80% !important;
width: 60% !important;
background-color: #ccc !important;
border: 1px solid #999 !important;
top: 0 !important;
-moz-user-select: none !important;
-webkit-user-select: none !important;
-webkit-user-drag: none !important;
}
.roundabout-in-focus {
cursor: auto !important;
top: 0 !important;
}
#animateTest {
position: relative !important;
height: 10em !important;
text-align: center !important;
background: #123 ;
padding: 20px 10px !important;
width: 25% !important;
display: block !important;
color: #fff !important;
margin: 0 auto !important;
border-radius: 5px !important;
font-weight: bold !important;
}