I found the answer to this question. https://ru.stackoverflow.com/questions/280619/%D0%9F%D0%B5%D1%80%D0%B5%D0%BD%D0%BE%D1%81-%D0%B4%D0%BB%D0%B8%D0%BD%D0%BD%D1%8B%D1%85-%D1%81%D1%82%D1%80%D0%BE%D0%BA-%D0%B2-%D1%8F%D1%87%D0%B5%D0%B9%D0%BA%D0%B5-%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B5 In summary, the table should be added to the attribute style FOLLOW-UP width:100%;word-break: break-all;table-layout: fixedas a result, we have a fixed width of the column and the values are not cut and transferred
See if you can use ready tools for this purpose for the client's Http.JavaSE7 has HttpURLConnection. Examples can be found online.Or Apache HtpComponents. https://hc.apache.org/httpcomponents-client-ga/examples.html )
I think the simplest way to get what you want is by using flex. Basically you will have to put your html code into a div that will display: flex defined. Then, each of the columns has a class col applied defining the width of 50%.As for the vertical line, you can do it by setting the border-right of the first column.Here’s an example based on your code:.col-wrapper {
display: flex
}
.col {
width: 50%;
padding: 10px;
}
.col:first-of-type {
border-right: 1px solid black;
}<div class="col-wrapper">
<div class="col">
<label for="input">Qual seu nome?</label>
<input type="text" id=valor>
<input type="submit" onclick="capturar()" value="Escreva Seu eu nome">
<p id="valorDigitado"></p>
</div>
<div class="col">
<label for="input">Qual a data do seu nascimento? </label>
<input type="number" id="date" placeholder="data">
<input type="number" id="month" placeholder="mês">
<input type="number" id="year" placeholder="ano">
<button id="calc-btn">Calcular Idade</button>
<p id="show-age"></p>
</div>
</div>
The problem is that all HTML tags you assign the ID ́numero ́, so the function always takes the first.
I recommend you assign the $i as Indice<?php
echo "<table border= 1; id='table'>";
echo "<th> Numeros </th>";
for($i = 1; $i <= $filas; $i++){
echo "<tr>";
echo "<td>";
echo "<div id='.$i.' onclick='alertNumero('.$i.')'>";
echo $i;
echo "</div>";
echo "</td>";
echo "</tr>";
}
?>
<script>
function alertNumero(e){
alert(e);
}
</script>
La otra opción es capturar el evento Click, y desde esa obtener el objeto que disparo el evento "alertNumero(event)", así:
<?php
echo "<table border= 1; id='table'>";
echo "<th> Numeros </th>";
for($i = 1; $i <= $filas; $i++){
echo "<tr>";
echo "<td>";
echo "<div id='.$i.' onclick='alertNumero(event)'>";
echo $i;
echo "</div>";
echo "</td>";
echo "</tr>";
}
?>
<script>
function alertNumero(event){
alert(event.target.innerHTML());
}
</script>
If in JavaScript, the transition can be changed. location.href:location.href = location.href.replace(/([&|\?]?filter=\d+)|$/, ((location.href.match(/[&|?]filter=/) || ['?filter='])[0]) + '999999');
999999 in this case the ID of the filter
If you need anything left in the cell O1, what you can do is keep the name of all the selected items in a variable and finally assign that value to the cell.Based on your code, it could be something like:Private Sub CommandButton1_Click()
Dim ItemsSeleccionados As String
ItemsSeleccionados = ""
With Hoja1
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
ItemsSeleccionados = ItemsSeleccionados & "-" & ListBox1.List(i, 0)
ListBox1.Selected(i) = False
End If
Next i
.Range("O1") = Left(ItemsSeleccionados, Len(ItemsSeleccionados) - 1)
End With
End Sub
If selected items that have +:2007 +
2008
2009 +
2010
This will leave the value 2007-2009 in the cell O1.
I should like to make sure that sub-paragraphs are moved to the menu.You can use any high-level menu. Add attribution data-* with the necessary values and when clicking on them, take this meaning and record it in the hidden input ( type=hidden ) http://jsfiddle.net/q0rj1a0n/ ♪ That's where I didn't play with styles and add other plugs, and the input made it out of sight.
Can't your CMS include the html code for the element manually?<input type="button" value="Категория" onclick="location.href='новый адрес'">
It's the code of the button that moves новый адрес
After you do list_catalog.Sorted = trueYou're sorted list_catalog♪ Vars.Files remains the same. That's why it's not what it takes. You can name the chosen one. listBox1 find an element with the same name Vars.Files:private void button_play_Click(object sender, EventArgs e)
{
// Изменена одна строка
string current = Vars.Files.Where(x => x == (string)list_catalog.SelectedItem).Single();
Vars.CurrentTrackNumber = list_catalog.SelectedIndex;
BassLike.Play(current, BassLike.Volume);
label_time1.Text = TimeSpan.FromSeconds(BassLike.GetPosOfStream(BassLike.Stream)).ToString();
label_time2.Text = TimeSpan.FromSeconds(BassLike.GetTimeOfStream(BassLike.Stream)).ToString();
xrewind.Maximum = BassLike.GetTimeOfStream(BassLike.Stream);
xrewind.Value = BassLike.GetPosOfStream(BassLike.Stream);
timer1.Enabled = true;
}
UpdateVars.Files contains full names of files, but list_catalog - names without the way. And trying to find meanings. list_catalog♪ equal values Vars.Filesnaturally received InvalidOperationException♪ Then we need to look at the line. Vars.Files contained line list_catalog:string current = Vars.Files.Where(x => x.Contains((string)list_catalog.SelectedItem)).Single();