【发布时间】:2018-02-08 10:57:03
【问题描述】:
手机上的地图图片: Map
我尝试了以下 Css 和 HTML,但在移动设备上使用地图时无法显示浮动面板。请问有什么我可以在 CSS 或 html 中更改以使浮动面板响应吗?
#origin-input,
#destination-input {
background-color: #fff;
font-family: Roboto;
font-size: 15px;
font-weight: 300;
margin-left: 12px;
padding: 0 11px 0 13px;
text-overflow: ellipsis;
width: 200px;
}
<div id="content">
<input id="origin-input" class="controls" type="text"
placeholder="Enter an origin location">
<input id="destination-input" class="controls" type="text"
placeholder="Enter a destination location">
<div id="mode-selector" class="controls">
<input type="radio" name="type" id="changemode-walking" checked="checked">
<label for="changemode-walking">Walking</label>
<input type="radio" name="type" id="changemode-transit">
<label for="changemode-transit">Transit</label>
<input type="radio" name="type" id="changemode-driving">
<label for="changemode-driving">Driving</label>
</div>
</div>
<div id="right-panel"></div>
<div class="col-xs-12">
<div id="map"></div>
</div>
【问题讨论】:
-
我不确定我是否明白你在这里问什么;对于浮动面板,您的意思是
origin-input和destination-inputids? -
是的。当我以移动形式进行操作时,它们会隐藏而不是相互隐藏
标签: html css google-maps responsive