Премини към съдържанието
Форумът в приложение

По-лесно сърфиране. Научи повече.

Kaldata.com - Форуми

Приложение на форума на цял екран с push известия, значки и други.

За да инсталирате това приложение на iOS и iPadOS
  1. Докоснете Иконата за споделяне в Safari
  2. Превъртете менюто и докоснете Добавяне към началния екран.
  3. Докоснете Добавяне в горния десен ъгъл.
За да инсталирате това приложение на Android
  1. Докоснете менюто с 3 точки (⋮) в горния десен ъгъл на браузъра.
  2. Докоснете Добавяне към началния екран или Инсталиране на приложение.
  3. Потвърдете, като докоснете Инсталиране.

Добре дошли!

Добре дошли в нашите форуми, пълни с полезна информация. Имате проблем с компютъра или телефона си? Публикувайте нова тема и ще намерите решение на всичките си проблеми. Общувайте свободно и открийте безброй нови приятели.

Моля, регистрирайте се за да публикувате тема и да получите пълен достъп до всички функции.

 

Pagination само с HTML

Featured Replies

Здравейте, Имам една задачка да направя таблица с много редове, но съответно да се изобразяват точно определен брой редове на страница. Трябва да е с алтернативен pagination. Без java, php и др. Трябва да се използват само html. Верно може да е много писане, но такава е задачата :) Нещо такова:


Няма значение. Намерих как се прави задачата. Идеята беше да изглежда козмечно така, но не и функционално.

post-357648-0-75851500-1428082838_thumb.

Редактирано от KYordanova (преглед на промените)

Здравей! От вчера и аз се занимавам с HTML (имам да правя проект в уни-то) и гледам едни уроци, от които този ще ти е полезен защото има всичко описано за таблиците и ще го разбереш без проблем:
http://videotutorials-bg.com/lessons.php?action=viewsub&id=25&t=27&page=2

Само с CSS и HTML и pagination, направих 3 файла за таблица от 3 страници. "table1.html", "table2.html", "table3.html"

 

 

файл table1.html


<!DOCTYPE html>
<html>
 
<head>
<title>Таблица на много страници само с HTML</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="[url=http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css]http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">[/url]
  <script src="[url=https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js]https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>[/url]
  <script src="[url=http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js]http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>[/url]
<style>
th {
    background-color:black;
color:white;
text-align:center;
}
 
.odd {
    background-color: yellow;
    text-align: center;
}
 
.even {
    text-align: center;
background-color:aliceblue;
}
</style>
</head>
 
<body>
 
<table style = "width:100%;">
<tr>
<th style = "width:20%;">
Gender
</th>
<th style = "width:20%;">
Seen a Blu-ray Movie
</th>
<th style = "width:20%;">
Own Blu-Ray Player
</th>
<th style = "width:20%;">
Own HDTV
</th>
<th style = "width:20%;">
Movie Source
</th>
</tr>
<tr>
<td style = "width:20%;" class = "odd">
Female
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
Netflix
</td>
</tr>
<tr>
<td style = "width:20%;" class = "even">
Female
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
Netflix
</td>
</tr>
<tr>
<td style = "width:20%;" class = "odd">
Female
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
Netflix
</td>
</tr>
<tr>
<td colspan = "2" style = "width:20%;" class = "even">
Showing 1 to 3 of 9 rows
</td>
<td style = "width:20%;" class = "even">
 
</td>
<td style = "width:20%;" class = "even">
 
</td>
<td style = "width:20%;" class = "even">
<ul class = "pagination"> <li><a href="table2.html">2</a></li> <li><a href="table3.html">3</a></li> </ul>
</td>
</tr>
</table>
 
</body>
</html>


файл table2.html


<!DOCTYPE html>
<html>
 
<head>
<title>Таблица на много страници само с HTML</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="[url=http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css]http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">[/url]
  <script src="[url=https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js]https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>[/url]
  <script src="[url=http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js]http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>[/url]
<style>
th {
    background-color:black;
color:white;
text-align:center;
}
 
.odd {
    background-color: yellow;
    text-align: center;
}
 
.even {
    text-align: center;
background-color:aliceblue;
}
</style>
</head>
 
<body>
 
<table style = "width:100%;">
<tr>
<th style = "width:20%;">
Gender
</th>
<th style = "width:20%;">
Seen a Blu-ray Movie
</th>
<th style = "width:20%;">
Own Blu-Ray Player
</th>
<th style = "width:20%;">
Own HDTV
</th>
<th style = "width:20%;">
Movie Source
</th>
</tr>
<tr>
<td style = "width:20%;" class = "odd">
Male
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
Netflix
</td>
</tr>
<tr>
<td style = "width:20%;" class = "even">
Male
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
Netflix
</td>
</tr>
<tr>
<td style = "width:20%;" class = "odd">
Male
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
Netflix
</td>
</tr>
<tr>
<td colspan = "2" style = "width:20%;" class = "even">
Showing 4 to 6 of 9 rows
</td>
<td style = "width:20%;" class = "even">
 
</td>
<td style = "width:20%;" class = "even">
 
</td>
<td style = "width:20%;" class = "even">
<ul class = "pagination"> <li><a href="table1.html">1</a></li> <li><a href="table3.html">3</a></li> </ul>
</td>
</tr>
</table>
 
</body>
</html>


файл table3.html


<!DOCTYPE html>
<html>
 
<head>
<title>Таблица на много страници само с HTML</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="[url=http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css]http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">[/url]
  <script src="[url=https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js]https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>[/url]
  <script src="[url=http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js]http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>[/url]
<style>
th {
    background-color:black;
color:white;
text-align:center;
}
 
.odd {
    background-color: yellow;
    text-align: center;
}
 
.even {
    text-align: center;
background-color:aliceblue;
}
</style>
</head>
 
<body>
 
<table style = "width:100%;">
<tr>
<th style = "width:20%;">
Gender
</th>
<th style = "width:20%;">
Seen a Blu-ray Movie
</th>
<th style = "width:20%;">
Own Blu-Ray Player
</th>
<th style = "width:20%;">
Own HDTV
</th>
<th style = "width:20%;">
Movie Source
</th>
</tr>
<tr>
<td style = "width:20%;" class = "odd">
Female
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
Netflix
</td>
</tr>
<tr>
<td style = "width:20%;" class = "even">
Male
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
No
</td>
<td style = "width:20%;" class = "even">
Netflix
</td>
</tr>
<tr>
<td style = "width:20%;" class = "odd">
Female
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
No
</td>
<td style = "width:20%;" class = "odd">
Netflix
</td>
</tr>
<tr>
<td colspan = "2" style = "width:20%;" class = "even">
Showing 7 to 9 of 9 rows
</td>
<td style = "width:20%;" class = "even">
 
</td>
<td style = "width:20%;" class = "even">
 
</td>
<td style = "width:20%;" class = "even">
<ul class = "pagination"> <li><a href="table1.html">1</a></li> <li><a href="table2.html">2</a></li> </ul>
</td>
</tr>
</table>
 
</body>
</html>

Редактирано от Реджеп Иведик (преглед на промените)

  • 2 седмици по-късно...

Архивирана тема

Темата е твърде стара и е архивирана. Не можете да добавяте нови отговори в нея, но винаги можете да публикувате нова тема, в която да продължи дискусията. Регистрирайте се или влезте във вашия профил за да публикувате нова тема.

Разглеждащи това в момента 0

  • Няма регистрирани потребители разглеждащи тази страница.

Дарение

  • Подкрепи съществуването на форума - направи дарение
    26%
    Дарени 256.00 EUR от нужните 1,000.00 EUR

Бюлетин

Получавайте известие, когато има важна промяна или новина свързана с форума.

Профил

Навигация

Търсене

Търсене

Конфигуриране на push известия в браузъра

Chrome (Android)
  1. Докоснете иконата на катинар до адресната лента.
  2. Докоснете Разрешения → Известия.
  3. Променете предпочитанията си.
Chrome (Desktop)
  1. Кликнете върху иконата на катинар в адресната лента.
  2. Изберете Настройки на сайта.
  3. Намерете Известия и коригирайте предпочитанията си.