Weitere ähnliche Inhalte
Ähnlich wie Артем Маркушев — HTML и CSS по кирпичикам. Детали. (20)
Артем Маркушев — HTML и CSS по кирпичикам. Детали.
- 1. HTML & CSS
По кирпичикам
Докладчик: Артем Маркушев
Дата: 6 июля 2015 года
- 3. <div class="wide_column_wrap">
<div class="wide_column" id="wide_column">
<div class="page_block" id="">
<div id="page_info_wrap" class="page_info_wrap">
<div class="page_top">
<div class="profile_online">
<div id="profile_online_lv" style="display:
none;">Online<b class="mob_onl profile_mob_onl unshown"
id="profile_mobile_online" onmouseover="mobileOnlineTip(this,
{mid: cur.oid, right: 1})" onclick="mobilePromo(); "></b></div>
<div id="profile_time_lv"></div>
</div>
<div class="page_name">Павел Дуров<a href="/verify"
class="page_verified" onmouseover="pageVerifiedTip(this, {mid:
1})"></a></div>
<div class="page_current_info" id="page_current_info">
<span class="current_text">
道德經
</span>
</div>
</div>
...
А вот так сайт выглядит на самом деле
- 21. #id { … }
Используйте как можно реже
А лучше вообще никогда
- 40. CSS
Каскады
ul.menu > li a:hover:before { … }
nav.primary li.nav-item.active { …
}
.container > p, .container > h1 { …
}
И тому подобное.
Это каскады – зависимости.
- 51. CSS
Вес селекторов
1 , 1 , 0 , 0 , 0!important style id class tag
a { width: 100% !important; }
<a href=“#” style=“width: auto
!important”>…</a>
Hinweis der Redaktion
- I’ll be talking about our HR communications, HR brand, what it is, why do we need it, what are we changing and what we want to achieve
- I’ll be talking about our HR communications, HR brand, what it is, why do we need it, what are we changing and what we want to achieve