Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CSSにおける制約
Search
suzumaze
May 01, 2018
Programming
80
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSSにおける制約
suzumaze
May 01, 2018
Other Decks in Programming
See All in Programming
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
Next.js: The final boss of Web Performance
guaca
0
250
Jetpack Compose Mechanisms
skydoves
3
820
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Workers Cache を知る
syumai
0
360
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Railsバージョンを4倍にした話
optim
0
350
Featured
See All Featured
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
[RailsConf 2023] Rails as a piece of cake
palkan
59
7.1k
For a Future-Friendly Web
brad_frost
184
10k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
730
Believing is Seeing
oripsolob
1
240
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
800
Evolving SEO for Evolving Search Engines
ryanjones
0
330
Transcript
CSSʹ͓͚Δ੍
CSSͲ͏ͱͰॻ͚Δ
CSSແޱ
CSSͱͯڧྗ
CSSͷຊ࣭ηϨΫλ
HTML Class Attribute != CSS
અࢠɺͦΕઃܭͳ͍ ໔ࡑූ <div class=“c-box__item--text js-opacity-delay__item is-active”> … </div> BEM ?
BEM? SMACSS? × OOCSS?
ۜͷʁ HTML CSS ٙࣅScoped CSS CSS in JSʢStyled Componentsʣ
CSS in JS ≒ jQuery css() Method ≒ HTML Old
Attribute
͍͍ͨؾ࣋ͪΘ͔Δ
ɿ࠶ར༻͕ఆ͞ΕΔ ίϯϙʔωϯτͷελΠϧ ଧͪফ͞Εͳ͍Α͏ৄࡉΛ࠷ߴʹʂ ɿ࠶ར༻ઌͰελΠϧΛඍௐ͢Δ͜ͱΛ ߟ͑ΕɺৄࡉΛ͓͚͍͍͋͛ͯͱ ݴ͑ͳ͍ͷͰͳ͍͔ʁ
ɿڝ߹͕ఆ͞ΕΔϓϩύςΟΛ ย͔ͬΒએݴ͓͚ͯ͠ͳ͍ ɿ࣮ࡍʹͲΜͳϓϩύςΟ͕ ద༻͞Ε͍ͯΔ͔ࣄલʹஅͰ͖ͳ͍
ͪΌΜͱॻ͖ͬ͘Όͳ͍
աෆͳ͍దͳηϨΫλ HTML <a class="btn-fb" href=“http://www.facebook.com/share.php?u=https%3A%2F%2F***.jp”> Facebook </a> CSS .page-chronicle #mainContent
.share-box dl dd .btn-fb { width: 34px; height: 34px; background: url(/img/pc/common/btn_fb.png) no-repeat left top; background-size: 100% auto; } CSS .page-chronicle > .share-box a[href*=“//www.facebook.com/share.php?u=”] { width: 34px; height: 34px; background: url(/img/pc/common/btn_fb.png) no-repeat left top; background-size: 100% auto; } HTML <a href=“http://www.facebook.com/share.php?u=https%3A%2F%2F***.jp”> Facebook </a>
dataଐੑΛ্खʹ HTML <section class=“section section01“> *** </section> CSS .section, .section01
{ padding: 15px 20px; } .section.section01 { background: url(background-section01.png); } HTML <section data-section=“about”> *** </section> CSS section[data-section] { padding: 15px 20px; } section[data-section=“about”] { background: url(background-about.png); }
ARIAΛ্खʹ
➡ HTML <p> •CSSʹ͓͚Δ੍<br> •CSSͲ͏ͱͰॻ͚Δ </p> HTML <ul> <li>CSSʹ͓͚Δ੍</li> <li>CSSͲ͏ͱͰॻ͚Δ</li>
</ul> CSS li::before { content: “•”; } ͓·͚:ྫ͑ɺຊ࣭తͳͷҎ֎CSSͰ <ol> <li>01.CSSʹ͓͚Δ੍</li> <li>02.CSSͲ͏ͱͰॻ͚Δ</li> </ol> ol { counter-reset: slide; } ol > li { list-style: none; } ol > li::before { counter-increment: slide; content: “0”counter(slide)”.“; } ⬇ <li>CSSʹ͓͚Δ੍</li> ⬇ 01.CSSʹ͓͚Δ੍
CSS [data-page-index=“1”] .navigation a[href$=“/*/**/1”] { pointer-events: none; opacity: .8; }
HTML <html data-page-index=“1”> ~ <ul class=“navigation”> <li> <a href="/special/suppose/1/1.php"> େͷՈ ౡݝࢢࢢ 2004 </a> </li> ~ </ul> ɹ͓·͚:ྫ͑ɺφϏήʔγϣϯCSSͰ
CSS html[lang=“ja”] a[href*=“/contact”] { background-image: url(/ja/img/contact.png); content: “͓͍߹Θͤ”; } html[lang=“en”]
a[href*=“/contact”] { background-image: url(/en/img/contact.png); content: “ Contact Us”; } HTML ຊޠαΠτ <html lang=“en”> <a href=“/contact”></a> ӳޠαΠτ <html lang=“en”> <a href=“/contact”></a> ͓·͚:ྫ͑ɺଟݴޠରԠCSSͰ
͋ΒΏΔ໊લҙਂ͘ ҆қʹଐੑΛৼΒͳ͍ ϚϧνΫϥεΛڋઈ
ඞཁͳͷ੍ ै͏͖ݪଇ ໔ࡑූ͍Βͳ͍
͓͠·͍