Custom stylesheets

การสื่อสารด้วยข้อมูลใน Tidyverse

Timo Grossenbacher

Data Journalist

Cascading Style Sheets (CSS): ตัวเลือกพื้นฐาน

<h2>Summary</h2>

<p>The <strong>International 
Labour Organization (ILO)</strong> 
has many 
<a href="http://test.htm">data sets
</a> on working conditions.
h2 {
  font-family: "Bookman", serif;
}
body, h1, h2 {
  font-family: "Bookman", serif;
}

strong { color: "red"; }
a { color: #0000FF; font-weight: bold; }
การสื่อสารด้วยข้อมูลใน Tidyverse

Cascading Style Sheets (CSS): ตัวเลือกคลาส

<h2>Strong elements</h2>

Here are two <strong class = "red">
bold</strong> 
<strong>elements</strong>.
strong {
  color: "blue";
}

strong.red { color: "red"; }
การสื่อสารด้วยข้อมูลใน Tidyverse

Cascading Style Sheets (CSS): ตัวรวม

<div>

  <p>
    This is a 
    <strong>bold element</strong>
    inside a paragraph
  </p>

  This is another
  <strong>bold element</strong>
  outside a paragraph.

</div>
div strong {
  color: "green";
}

div > strong { color: "red"; }

ดูตัวเลือกเพิ่มเติมและเอกสารอ้างอิง CSS ฉบับสมบูรณ์ได้ที่ Mozilla Developer Network.

การสื่อสารด้วยข้อมูลใน Tidyverse

มาฝึกกันเถอะ!

การสื่อสารด้วยข้อมูลใน Tidyverse

Preparing Video For Download...