Strona 1 z 1
tabelka
: 02 wrz 2011, 15:27:22
autor: Barca20
witam mam stronę
www.typydnia.c0.pl i chciałbym zrobić tabelke taką openside("nazwa");
echo '<table border="1" bordercolor="#000000" style="background-color:#FFFFFF" cellpadding="3" cellspacing="3">
<tr>
<td>Godzina</td>
<td>mecz</td>
<td>typ</td>
<td>kurs</td>
<td>wynik</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
</table>';
closeside(); ale co wybrać w nazwie pliku panelu bo jest tam dużo opcji
Re: tabelka
: 02 wrz 2011, 15:48:17
autor: Venite
W nazwie pliku panelu czy w rozszerzeniu?
Możesz wpisać nazwę powiedzmy tabelka i dać rozszerzenie .htm lub .html...
No innej opcji tutaj nie widzę, jeśli o to Ci chodzi.
Re: tabelka
: 02 wrz 2011, 19:02:01
autor: Barca20
no dobra a powiedzcie mi teraz jak mam tak <table border="1" bordercolor="#000000" style="background-color:#FFFFFF" cellpadding="3" cellspacing="3">
<tr>
<td>GODZINA</td>
<td>1</td>
<td>-</td>
<td>2</td>
<td>TYP</td>
<td>KURS</td>
<td>WYNIK</td>
<td>STATUS</td> </tr>
<tr>
<td>lech poznań</td>
<td>warta ań</td>
<td>c</td>
<td>d</td>
<td>e</td>
<td>T</td>
<td>Tall</td>
<td>warta</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
</table> i bym chciał niektóre wiersze na jakiś kolor czerwony lub zielony to co mam teraz dokleić
Re: tabelka
: 02 wrz 2011, 22:17:20
autor: Venite
Normalnie atrybutem style i color <border, background>. Albo font color wewnątrz . Zasada się chyba nie zmienia
Re: tabelka
: 02 wrz 2011, 22:20:20
autor: Barca20
a w jakim miejscu to wkleić zrób jakiś przykład na 1 wierszu z kolorem czerwonym
Re: tabelka
: 02 wrz 2011, 22:32:17
autor: Venite
a kurs html był odwiedzony?
Komórka
<td style="border-color: red;"><font color="green">czerwona ramka z zielonym tekstem</font></td>
Zastrzegam sobie prawo do błędu, robię na szybko i zmęczony jestem
Re: tabelka
: 02 wrz 2011, 22:42:43
autor: Barca20
chodzi mi tylko o tło jednego wieprza żeby był czerwony i w jakie miejsce wkleić polecenie
Re: tabelka
: 03 wrz 2011, 10:16:25
autor: fuma
Venite powinienes dostac moralnego bana za uzywanie <font> ;]
Barca20 www.kurshtml.edu.pl
Re: tabelka
: 03 wrz 2011, 11:02:24
autor: Barca20
dobra ale w które miejsce to wkleić żeby pierwszy wiersz był na czerwono
Re: tabelka
: 03 wrz 2011, 11:42:32
autor: LaY
eee, w komórkach pierwszego wiersza?
tak będzie prościej
Kod: Zaznacz cały
<tr style="background-color:red;">
<td>GODZINA</td>
<td>1</td>
<td>-</td>
<td>2</td>
<td>TYP</td>
<td>KURS</td>
<td>WYNIK</td>
<td>STATUS</td>
</tr>
Choć znając życie pomyliłeś wiersze z kolumnami i zaraz wrócisz.
http://kurshtml.edu.pl
Re: tabelka
: 03 wrz 2011, 11:57:27
autor: Barca20
czyli tak <table border="9" bordercolor="#000000" style="background-color:#FFFFFF" cellpadding="6" cellspacing="2">
< tr style= "background-color :red;">
<td>GODZINA/DATA</td>
<td>DYSCYPLINA</td>
<td>1</td>
<td>2</td>
<td>TYP</td>
<td>KURS</td>
<td>WYNIK</td>
<td>STATUS</td> </tr>
<tr>
<td>lech poznań</td>
<td>warta ań</td>
<td>c</td>
<td>d</td>
<td>e</td>
<td>T</td>
<td>Tall</td>
<td>warta</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
<tr>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
<td>Table Cell</td>
</tr>
</table> i nic nie działa
Re: tabelka
: 03 wrz 2011, 12:34:37
autor: Venite
Używaj tagu code jeśli łaska
Kod: Zaznacz cały
<table border="9" bordercolor="#000000" style="background-color:#FFFFFF" cellpadding="6" cellspacing="2">
Zamieniłbym na <table style="border: 9; border-color: #000000; background-color: #ffffff" cellpadding="6" cellspacing="2">
Bo to górne chyba źle sformułowane.
Fuma, to aż tak źle?
Re: tabelka
: 03 wrz 2011, 12:47:45
autor: Barca20
po co ty mi podajesz kod do całej tabelki skoro ja chce do pojedynczego wieprza widzę że na tym forum nikt już nie umie pomóc
Re: tabelka
: 03 wrz 2011, 13:27:11
autor: fuma
Barca20 nikt nie umie pomoc, a moze nie potrafisz z tej pomocy skorzystac? Przeanalizowales chociaz kod ktory Tobie podalem? Widziales zebym style css dodawal do elementu <tr>? Zanim zadasz kolejne pytanie z zakresu podstaw html zapoznaj sie z
www.kurshtml.edu.pl
Re: tabelka
: 04 wrz 2011, 11:28:00
autor: LaY
Barca20 pisze:
czyli tak [tutaj wklejony któryś już raz kod tabelki] i nic nie działa
Bo nawet skopiować nie potrafisz, skopiowałeś ten kod z błędem.
Kod: Zaznacz cały
< tr style= "background-color :red;"><!--Co robią te spacje przed tr, po znaku równości i przed dwukropkiem??-->
Nie pisz, że nie działa skoro sprawdzałem to w edytorze(Core Editor) który korzysta w podglądzie z przeglądarki, która jest pierwsza w kolejce do niepoprawnego zinterpretowania kodu, czyli IE
---- EDIT ----
Zapobiegawczo dam ci jeszcze rozwiązanie które zaproponował
fuma bo pewnie nawet nie zrozumiesz tego co napisałem powyżej.
Kod: Zaznacz cały
<tr>
<td style="background-color: red">GODZINA/DATA</td>
<td style="background-color: red">DYSCYPLINA</td>
<td style="background-color: red">1</td>
<td style="background-color: red">2</td>
<td style="background-color: red">TYP</td>
<td style="background-color: red">KURS</td>
<td style="background-color: red">WYNIK</td>
<td style="background-color: red">STATUS</td>
</tr>