The Cascading Style Sheets are made up of 2 parts, the selector and the declaration . Kaskādes stilu tabulas sastāv no 2 daļām, selektoru un deklarāciju.
The selector comes first and it describes the element on the page that is going to be control through this rule. Selektoru, kas notiek vispirms, un tas apraksta elementu lapā, kas būs kontrolēt, izmantojot šo noteikumu.
In the image below you will see the selector which will control all the h1 in the current document. Attēlā zemāk redzēsiet selektoru, kas kontrolē visas H1 pašreizējā dokumentā.

Next to the selector you will see the declaration . Blakus atlasītāju redzēsiet deklarāciju. The declaration are contain in between these curly brackets { } which tells the browsers that all properties inside { } should be apply to the element identify as the selector (in this example h1 selector) Deklarācijā ir jāietver starp šīm cirtaini iekavās (), kas stāsta pārlūkiem, ka visas īpašības iekšā (), būtu jāpiemēro elementu identificēt kā selektoru (šajā piemērā h1 atlasītāju)
Inside the declaration we have the property and values . Inside deklarācija esam īpašumu un vērtības. Notice they are separated by : and ends with ; this tell the browsers to move to the next property if there are any available. Paziņojums tie ir atdalīti ar: un beidzas ar, tas pateiks pārlūkprogrammās, lai pārietu uz nākamo īpašumu, ja tādas ir pieejamas.
In this example, our rule will take all the h1 and make them all Arial with the font size at 1.4em and the color will be white. Šajā piemērā mūsu noteikums veiks visus H1 un dara tos visiem Arial ar fonta pie 1.4em lielumu un krāsu būs balta.
You can use Dreamweaver to do this for you, or if you want and you have memorialize all the selector and declaration you can always hand code them. Jūs varat izmantot Dreamweaver, lai to izdarītu jums vai ja vēlaties, un jums ir petīciju visi atlasītāju un deklarāciju jūs vienmēr varat rokām kods tiem.
Find more info on Cascading Style Sheets Structure and Rules with the text links below. Atrast vairāk info par Kaskādes stilu tabulas struktūra un noteikumi ar teksta saites zemāk.
Related posts: Related posts:
- Understand Style Sheets Saprast Style Sheets
CSS stand for Cascading Style Sheets. CSS kandidēt Cascading Style Sheets. A CSS style is a collection of formatting attribute that is use to style an element on a... CSS stils ir kolekcija formatējuma raksturlielumu, kas tiek izmantoti, lai stils elements a. .. - Another Visit from National Home Services Vēl viens Visit no Valsts Sākums Pakalpojumi
I'll keep writing a new post each time I get a new visitor from National Home Services or from one of their other companies.... I'll glabāt rakstveidā jaunu post katru reizi man jauns apmeklētājs no Valsts Sākums Pakalpojumi vai no vienas no to citiem uzņēmumiem .... - 10 months after my laid off 10 mēnešus pēc manas atlaisti
Well, I got laid off from my last job as a web designer back in November 2009, when the banking and housing industries collapsed... Nu, es saņēmu atlaisti no mana pēdējā darba kā web dizainers atpakaļ 2009 gada novembrī, kad banku un mājokļu nozarēs sabruka ... - Create HTML table with fixed width columns with CSS Izveidot HTML tabulu ar fiksēta platuma kolonnu ar CSS
So you want to create your HTML table with fixed width for all the columns regardless of what ever content you have inside the... Tātad, jūs vēlaties izveidot savu HTML tabulu ar fiksētu platumu visām kolonnām, neatkarīgi no tā, ko kādreiz saturu jums ir iekšpusē ... - What is the difference between id and class Kāda ir atšķirība starp id un klases
ID tags are very similar to class tag, that's is why many people are confuse. ID tagi ir ļoti līdzīgas klases tagu, tas ir iemesls, kāpēc daudzi cilvēki ir sajaukt. I always wonder this myself…here is what I know…... Es vienmēr brīnums šis pats ... šeit ir tas, ko es zinu ... ... - Two different design and layout for wordpress posts Divas dažādas dizaina un WordPress amatu izkārtojums
Lets say you have your wordpress setup and ready to go. Lets teikt jums ir WordPress setup, un gatava iet. But we all know that the current default wordpress can only have one... Bet mēs visi zinām, ka pašreizējā noklusējuma WordPress var būt tikai viens ... - Armani Black Code Cologne Review Armani Black Code Cologne Review
I brought this Armani Black Code Cologne about 2 years ago for about $90 dollars. Es cēla šo Armani Black Code Ķelnes apmēram 2 gadus atpakaļ par apmēram $ 90 ASV dolāru. (the image below is to the actual image) I... (Attēlu zemāk ir faktiskais attēlu) I. .. - How to put an anchor to your html input button Kā likt enkurs jūsu html ievade pogu
Ok, usually it is pretty straight forward if you just have a regular anchor link like this one. Ok, parasti tas ir diezgan taisni uz priekšu, ja jums vienkārši ir regulāri enkuru saite, piemēram, šo vienu. 1. 1. The link code: <a href=”#myLink”>Link</a>... Saite kods: <a href="#myLink"> Link </ a> ... - Code of conduct for blogging Rīcības kodekss lai blogošana
Did you know there was a code of conduct for blogging? Vai jūs zināt, tur bija rīcības kodeksu, lai blogošana? I sure don't but I ran across this page on Wikipedia last night.... Nudien nav, bet es skrēja pāri šo lapu uz Wikipedia pēdējā naktī ....























