Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
jquery.autocomplete.jshttp://www.pengoworks.com/workshop/jquery/autocomplete_docs.txt hat gesagt.:width (default value: 0)
Sets the width of the drop down layer. If a non-positive integer is specified, then the width of the box will be determined by the width of the input element. Generally speaking, you'll want to leave this value alone. However, in some circumstances you may have a small input element where the drop down layer needs to display a lot of options. In that case, you can specify a larger size.
// Zeile 482
options.width = parseInt(options.width, 10) || 0; // "0" kann durch die gewünschte Breite ersetzt werden
<html>
<head>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js"></script>
<style type="text/css">
<!--
input,select{
width:50px;
border:solid 1px;
background:#0FF;
float:left;
}
div.autocomplete {
width:800px;
background:#fff;
border:1px solid #888;
position:absolute;
}
div.autocomplete ul {
margin:0px;
padding:0px;
list-style-type:none;
}
div.autocomplete ul li.selected {
background-color:#ffb;
}
div.autocomplete ul li {
margin:0;
display:block;
}
-->
</style>
</head>
<p>
<label for="bands_from_the_70s">Your favorite rock band from the 70's:</label>
<br />
<input id="bands_from_the_70s" autocomplete="off" size="40" type="text" value="" />
</p>
<div class="autocomplete" id="band_list" style="display:none"></div>
<script type="text/javascript">
var bandsList = [
'ABBA',
'AC/DC',
'Aerosmith',
'America',
'Bay City Rollers',
'Black Sabbath',
'Boston',
'David Bowie',
'Can',
'The Carpenters',
'Chicago',
'The Commodores',
'Crass',
'Deep Purple',
'The Doobie Brothers',
'Eagles',
'Fleetwood Mac',
'Haciendo Punto en Otro Son',
'Heart',
'Iggy Pop and the Stooges',
'Journey',
'Judas Priest',
'KC and the Sunshine Band',
];
new Autocompleter.Local('bands_from_the_70s', 'band_list', bandsList, { });
</script>
</body>
</html>
div.autocomplete {
width:800px !Important;
background:#fff;
border:1px solid #888;
position:absolute;
}
div.autocomplete {
width:800px !important;
background:#fff;
border:1px solid #888;
position:absolute;
}