/
maxxon
/
web-static-labs
Обзор
Документация
Войти
/
maxxon
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab5/task7/style.css
129 строк
2 KB
Dasha_10
изменения
19 окт 2025, 18:51
19 окт 2025, 18:51
b6adcb0
Код
Авторство
О чём код?
body { font-family: sans-serif; background-color: #f0f8ff; color: #333; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; } .container { background-color: #fff; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 20px; width: 95%; max-width: 1200px; text-align: center; overflow-x: auto; /* Важно: горизонтальная прокрутка */ } h1 { color: #4682b4; } .controls { display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; } .controls label { margin-bottom: 5px; color: #4682b4; } .controls input[type="number"] { padding: 8px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 4px; width: 80px; text-align: center; } .controls button { background-color: #4682b4; color: white; padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; } .controls button:hover { background-color: #2e648b; } table { width: 100%; border-collapse: collapse; margin-top: 20px; table-layout: auto; /* Автоматическая ширина столбцов */ } table, th, td { border: 1px solid #ddd; } th, td { padding: 8px; text-align: center; min-width: 40px; /* Минимальная ширина ячейки */ white-space: nowrap; /* Запрет переноса строк */ overflow: hidden; /* Обрезание содержимого */ text-overflow: ellipsis; /* Добавление троеточия */ } td:hover { cursor: pointer; } .highlighted { background-color: #b0e2ff; border: 2px solid #4682b4; } .modal { display: none; position: fixed; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); } .modal-content { background-color: #fefefe; margin: 15% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 600px; border-radius: 8px; position: relative; } .close { position: absolute; top: 10px; right: 15px; color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; }