CSS University of Washington http www cs washington
- Slides: 27
CSS Язык описания представлений По материалам курса University of Washington http: //www. cs. washington. edu/education/courses/cse 190 m/07 sp/index. shtml
Привязывание страницы стилей к документу p { color: white; background-color: black; } h 1 { font-size: large; font-weight: bold; } h 2 { font-weight: 500; color: blue; } mystyles. css <html> example. html <head> <link rel="stylesheet" type="text/css" href=“mystyles, css"/> </head> <body> содержание страницы HTML-документа </body> </html> Ссылка может быть как на «локальную» страницу стилей, созданную специально для этого документа, так и на «глобальную» , хранящуюся в сети Интернет. <head> example 1. html <link rel="stylesheet" type="text/css" href="http: //www. google. com/uds/css/gsearch. css" /> </head>
Некоторые атрибуты и варианты значений Атрибуты шрифта (font) и текста (text). font-family: "lucida console" "courier new" sans-serif; font-size: small; font-size: larger; font-size: 10 px; font-size: 80%; font-weight: bold; font-weight: 400; font-style: italic; font: sans-serif bold x-large; text-align: center; text-align: right; text-transform: uppercase; text-indent: 2 cm; text-decoration: underline; text-decoration: blink;
Взаимодействие стилей body { font-family: sans-serif; background-color: yellow; } p { color: red; background-color: aqua; } a { text-decoration: overline underline; } h 2 { font-weight: bold; text-align: center; } <body> <h 2>Это заголовок</h 2> <p>А это абзац со <a href="myref. html">ссылкой</a> внутри </p> </body> Это заголовок А это абзац со ссылкой внутри body h 2 p a
Использование классов p { font-family: sans-serif; } p. special { background-color: yellow; font-weight: bold; }. standout { color: red; font-family: cursive; } <body> <h 2 class="standout">Это заголовок класса standout</h 2> <p>Это просто абзац</p> <p class="special">Это абзац класса special</p> <p class="standout special">Это абзац классов special и standout</p> </body> classes. html Это заголовок класса standout Это просто абзац Это абзац класса special Это абзац классов special и standout
Использование тегов div и span div. style 1 { font-family: sans-serif; } div. style 2 { font-family: Times; color: blue; }. bold { font-weight: bold; } <body> <div class="style 1"> <h 2>Это заголовок класса style 1</h 2> <p>Это абзац класса style 1</p> </div> <div class="style 2"> <h 2>Это заголовок класса style 2</h 2> <p>Это абзац <span class="bold">класса</span> style 2</p> </div> </body> Это заголовок класса style 1 Это абзац класса style 1 Это заголовок класса style 2 Это абзац класса style 2 div. html
Пример размещения блоков <style type="text/css"> p { font-family: sans-serif; font-size: 16 pt; border: 2 px solid red; } p. class 1 { width: 400 px; background-color: yellow; padding: 0. 5 cm; margin: 0. 5 cm; } p. class 2 { width: 500 px; background-color: green; padding: 0. 3 cm; margin: 1 cm; } </style> <body> <p class="class 1">Первый параграф</p> <p class="class 1">Второй параграф</p> <p class="class 2">Третий параграф</p> <p class="class 2">Четвертый параграф</p> <p class="class 1">Пятый параграф</p> </body> blocks. html
- George washington university student accounts
- University of washington css
- Http //mbs.meb.gov.tr/ http //www.alantercihleri.com
- Siat.ung.ac.id
- Washington university rotc
- University of washington credit card
- Western washington university human services
- Gwu electrical engineering
- Tom anderson university of washington
- University of washington
- Bionic display contact lens
- Hank webber
- University of washington emba
- "post university" -liu -washington
- University of washington emba
- George washington university electrical engineering
- Global environment for network innovations
- "university of maryland university college"
- What css stands for
- скрипт css
- Iskrivljena slova
- Sitecore customize rich text editor
- Sass double ampersand
- Language html css
- Html gyakorló feladatok
- Marginesy wewnętrzne css
- Table styling css
- Css selector attribute