|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
26.11.2016, 17:22 | #1 |
Новичок
Джуниор
Регистрация: 26.11.2016
Сообщений: 1
|
Не подключается css
Когда пишу в css не работают стили, фоны и т.д.(сам файл css я подкл.).
1.html Код HTML:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="style.css"> </head> <body> <div id="ggg"> <a href="#">Главная</a> <span>/</span> <a href="#">Загадки</a> <span>/</span> <a href="#">Угадайка</a> <span>/</span> <a href="#">Угадайка мультиплеер</a> <span></span> </div> <div id="main"> <p>Личный сайт студента GeekBrains </p> <img src="img/photo.png" alt="фотография"> <p>Добрый день. Меня зовут <b>Серегй Стефаненко</b>. <br> Я - <i>начинающий программист</i>. Я совсем недавно стал на этот путь,но уже успел написать свой первый сайт. </p> <p> В этом не помог курс основы програмированния </p> <p> На этом сайте вы сможете сыграть в три игры,которыя я написал: </p> <a href="#">Главная</a> <a href="#">загадки</a> <a href="#">Угадайка</a> <a href="#">Угадайка мультиплеер</a> </div> Copyright © 2016 <a href="https://geekbrains.ru/" target="_blank">GeekBrains</a> </body> </html> Код:
Последний раз редактировалось Вадим Мошев; 26.11.2016 в 18:42. |
26.11.2016, 18:53 | #2 |
Старожил
Регистрация: 12.11.2010
Сообщений: 8,568
|
Что здесь не работает по вашему мнению?
Быть может, оттого, что цвет текста кажется чёрным, вы полагаете, что эффекта нет? Установите в css другой цвет и посмотрите на результат. Кстати, советы. 1. Пользуйтесь HTML-мнемониками вместо символов "слеш" (/) 2. Для подключения стилей через link указывайте MIME-тип: Код:
Последний раз редактировалось Вадим Мошев; 26.11.2016 в 21:44. |
26.11.2016, 19:03 | #3 |
Старожил
Регистрация: 12.01.2011
Сообщений: 19,500
|
Ушел с форума, https://www.programmersforum.rocks, alex.pantec@gmail.com, https://github.com/AlexP11223
ЛС отключены Аларом. |
26.11.2016, 19:40 | #4 |
Старожил
Регистрация: 12.11.2010
Сообщений: 8,568
|
|
26.11.2016, 19:46 | #5 |
Старожил
Регистрация: 12.01.2011
Сообщений: 19,500
|
И кому она нужна?
Ушел с форума, https://www.programmersforum.rocks, alex.pantec@gmail.com, https://github.com/AlexP11223
ЛС отключены Аларом. |
26.11.2016, 19:56 | #6 |
Старожил
Регистрация: 12.11.2010
Сообщений: 8,568
|
Ну вот о необходимости я не мог найти информацию...
|
26.11.2016, 20:08 | #7 | ||
Старожил
Регистрация: 12.01.2011
Сообщений: 19,500
|
rel необходим, type можно не писать.
По стандарту Цитата:
Цитата:
Ушел с форума, https://www.programmersforum.rocks, alex.pantec@gmail.com, https://github.com/AlexP11223
ЛС отключены Аларом. |
||
27.11.2016, 04:39 | #8 |
Раздолбайских Дел
Старожил
Регистрация: 22.05.2009
Сообщений: 3,828
|
type нужен был для ишаков младше 7 (IE6-)
В общем, сейчас уже не актуально)
Alar, верни репу!
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
На CMS WIX удаленно подключается файл .css, но не работает @font-face | Bender1000 | WordPress и другие CMS | 0 | 18.03.2015 08:08 |
CSS не подключается к HTML | far1towi4 | HTML и CSS | 4 | 23.04.2013 02:57 |
Не подключается к серверу | Ardarik | БД в Delphi | 25 | 03.02.2013 20:09 |
не подключается бд на хосте | hunter03 | PHP | 11 | 18.07.2012 20:50 |
не подключается БД | yulia | БД в Delphi | 8 | 13.12.2007 16:34 |