{"id":16600,"date":"2016-03-06T06:01:51","date_gmt":"2016-03-06T02:31:51","guid":{"rendered":"http:\/\/www.xn--mgbguh09aqiwi.com\/?p=16600"},"modified":"2016-03-06T06:12:20","modified_gmt":"2016-03-06T02:42:20","slug":"%d8%aa%d9%81%d8%a7%d9%88%d8%aa-%d8%a8%db%8c%d9%86-4-%d8%a7%d9%86%d8%aa%d8%ae%d8%a7%d8%a8%da%af%d8%b1-%d9%85%d9%87%d9%85-%d9%88-%d8%a7%d8%b5%d9%84%db%8c-%d8%af%d8%b1-css-%d9%88-javascript","status":"publish","type":"post","link":"https:\/\/www.xn--mgbguh09aqiwi.com\/%d8%aa%d9%81%d8%a7%d9%88%d8%aa-%d8%a8%db%8c%d9%86-4-%d8%a7%d9%86%d8%aa%d8%ae%d8%a7%d8%a8%da%af%d8%b1-%d9%85%d9%87%d9%85-%d9%88-%d8%a7%d8%b5%d9%84%db%8c-%d8%af%d8%b1-css-%d9%88-javascript.html","title":{"rendered":"\u062a\u0641\u0627\u0648\u062a \u0628\u06cc\u0646 4 \u0627\u0646\u062a\u062e\u0627\u0628\u06af\u0631 \u0645\u0647\u0645 \u0648 \u0627\u0635\u0644\u06cc \u062f\u0631 Css \u0648 JavaScript"},"content":{"rendered":"

\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a \u0628\u0647 \u062a\u0641\u0627\u0648\u062a \u0646\u062d\u0648\u0647 \u06cc \u0635\u062f\u0627 \u0632\u062f\u0646 Element , Id , Class \u0648 Attribute \u062f\u0631 \u0633\u06cc \u0627\u0633 \u0627\u0633 \u0648 \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u06cc\u067e\u0631\u062f\u0627\u0632\u06cc\u0645 .<\/p>\n

\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0645\u0627 \u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0631 \u0632\u0628\u0627\u0646 Css \u0648 \u06cc\u0627 \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a , \u06cc\u06a9 \u0639\u0646\u0635\u0631 \u062e\u0627\u0635\u06cc \u0631\u0627 \u0635\u062f\u0627 \u0632\u062f\u0647 \u0648 \u0628\u0647 \u0622\u0646 \u062e\u0627\u0635\u06cc\u062a \u0647\u0627\u06cc\u06cc \u0628\u062f\u0647\u06cc\u0645 , \u0628\u0627\u06cc\u062f \u0627\u0632 \u0631\u0648\u0634 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc ( \u062f\u0631 \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a ) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u062f\u0631 \u0632\u06cc\u0631 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0622\u0646 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0637\u0631\u0627\u062d\u0627\u0646 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0639\u0632\u06cc\u0632 \u0622\u0648\u0631\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a …<\/p>\n

\u062f\u0631 \u0632\u06cc\u0631 \u06f4 \u0631\u0648\u0634 \u0645\u0639\u0645\u0648\u0644 \u062f\u0631 \u062f\u0648 \u0632\u0628\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a …<\/p>\n

<\/p>\n

\"\u062a\u0641\u0627\u0648\u062a<\/a><\/p>\n

1 – \u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u06cc\u06a9 ID \u0631\u0627 \u0635\u062f\u0627 \u0632\u062f\u0647 \u0648 \u062e\u0627\u0635\u06cc\u062a\u06cc \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u0645 :<\/span><\/p>\n

\u062f\u0631 Css :<\/p>\n

#id {\r\n  background-color:red;\r\n}<\/pre>\n

\u062f\u0631 JavaScript :<\/p>\n

var vms = document.getElementById('id');\r\nvms.style.background-color = 'red';<\/pre>\n

2\u00a0– \u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u06cc\u06a9 Class\u00a0\u0631\u0627 \u0635\u062f\u0627 \u0632\u062f\u0647 \u0648 \u062e\u0627\u0635\u06cc\u062a\u06cc \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u0645 :<\/span><\/p>\n

\u062f\u0631 Css :<\/p>\n

.class {\r\n  background-color:red;\r\n}<\/pre>\n

\u062f\u0631 JavaScript :<\/p>\n

var vms = document.getElementsByClassName('class');\r\nfor (i=0; i<el.length; i++) {\r\n  vms[i].style.background-color = 'red';\r\n}<\/pre>\n

3 – \u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u06cc\u06a9 Element ( \u062a\u06af ) \u06a9\u0644\u06cc\u00a0\u0631\u0627 \u0635\u062f\u0627 \u0632\u062f\u0647 \u0648 \u062e\u0627\u0635\u06cc\u062a\u06cc \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u0645 :<\/span><\/p>\n

\u062f\u0631 Css :<\/p>\n

element{\r\n  background-color:red;\r\n}<\/pre>\n

\u062f\u0631 JavaScript :<\/p>\n

var vms = document.getElementsByTagName('element');\r\n\r\nfor (i=0; i<el.length; i++) {\r\n  vms[i].style.background = 'red';\r\n}<\/pre>\n

4 – \u0627\u06af\u0631 \u0628\u062e\u0648\u0627\u0647\u06cc\u0645 \u06cc\u06a9 Attribute\u00a0\u06a9\u0644\u06cc \u0631\u0627 \u0635\u062f\u0627 \u0632\u062f\u0647 \u0648 \u062e\u0627\u0635\u06cc\u062a\u06cc \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0628\u062f\u0647\u06cc\u0645 :<\/span><\/p>\n

\u062f\u0631 Css :<\/p>\n

[attribute]{\r\n  background-color:red;\r\n}<\/pre>\n

\u062f\u0631 JavaScript :<\/p>\n

var vms = document.querySelectorAll('[attribute]');\r\n\r\nfor (i=0; i<el.length; i++) {\r\n  vms[i].style.background-color = 'red';\r\n}<\/pre>\n

\u062a\u0648\u062c\u0647 :\u200c<\/span> \u0628\u0647 \u062c\u0627\u06cc id , class , element \u0648 attribute \u062f\u0631 \u06a9\u062f \u0647\u0627\u06cc \u0628\u0627\u0644\u0627 \u0628\u0627\u06cc\u062f \u0645\u0642\u0627\u062f\u06cc\u0631 \u062f\u0644\u062e\u0648\u0627\u0647 \u062e\u0648\u062f \u0631\u0627 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f .\u00a0\u0645\u062b\u0644\u0627 test# \u0648 box. \u0648 h1 \u0648 [href]<\/p>\n

\u067e\u062e\u0634 \u0627\u062e\u062a\u0635\u0627\u0635\u06cc<\/p>\n

\u0622\u0645\u0648\u0632\u0634 : \u0648\u062d\u06cc\u062f \u0645\u062c\u06cc\u062f\u06cc<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a \u0628\u0647 \u062a\u0641\u0627\u0648\u062a \u0646\u062d\u0648\u0647 \u06cc \u0635\u062f\u0627 \u0632\u062f\u0646 Element , Id , Class \u0648 Attribute \u062f\u0631 \u0633\u06cc \u0627\u0633 \u0627\u0633 \u0648 \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u0645\u06cc\u067e\u0631\u062f\u0627\u0632\u06cc\u0645 . \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0645\u0627 \u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0631 \u0632\u0628\u0627\u0646 Css \u0648 \u06cc\u0627 \u062c\u0627\u0648\u0627 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a , \u06cc\u06a9 \u0639\u0646\u0635\u0631 \u062e\u0627\u0635\u06cc \u0631\u0627 \u0635\u062f\u0627 \u0632\u062f\u0647 \u0648 \u0628\u0647 \u0622\u0646 \u062e\u0627\u0635\u06cc\u062a \u0647\u0627\u06cc\u06cc \u0628\u062f\u0647\u06cc\u0645 , \u0628\u0627\u06cc\u062f \u0627\u0632 \u0631\u0648\u0634 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[565,566],"tags":[17794,17795,17796,17797,17798,17793,17785],"_links":{"self":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts\/16600"}],"collection":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/comments?post=16600"}],"version-history":[{"count":0,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts\/16600\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/media?parent=16600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/categories?post=16600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/tags?post=16600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}