{"type":"rich","height":"190","provider_url":"https://hatena.blog","url":"https://computer-technology.hateblo.jp/entry/20140104/p2","image_url":null,"blog_url":"https://computer-technology.hateblo.jp/","version":"1.0","blog_title":"\u30e2\u30d0\u30a4\u30eb\u901a\u4fe1\u3068IT\u6280\u8853\u3092\u30b3\u30c4\u30b3\u30c4\u52c9\u5f37\u3059\u308b\u30d6\u30ed\u30b0","width":"100%","provider_name":"Hatena Blog","title":"JavaScript\u306eclassName\u5c5e\u6027\u306f\uff0c\u8981\u7d20\u306e\u8907\u6570\u306e\u30af\u30e9\u30b9\u540d\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u53d6\u5f97\u3059\u308b","description":"HTML\u4e0a\u3067\uff0c\u3042\u308bDOM\u8981\u7d20\u304c\u8907\u6570\u306e\u30af\u30e9\u30b9\u540d\u3092\u6301\u3063\u3066\u3044\u308b\u5834\u5408\uff0cclassName\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u547c\u3073\u51fa\u3057\u306f\uff0c\u8907\u6570\u306e\u30af\u30e9\u30b9\u540d\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u3002 HTML\u4e0a\u306eclass\u6587\u5b57\u5217\u304c\u305d\u306e\u307e\u307e\u6587\u5b57\u5217\u3068\u3057\u3066\u8fd4\u308b \u6587\u5b57\u5217\u306e\u69d8\u5b50\u306f\uff0chtml\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u307e\u307e\u3002\u8907\u6570\u306e\u30af\u30e9\u30b9\u540d\u306e\u9593\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u304c\uff11\u3064\u66f8\u304b\u308c\u3066\u3044\u308c\u3070\uff0c\u305d\u306e\u901a\u308a\u306e\u6587\u5b57\u5217\u306b\u306a\u308b\u3057\uff0c HTML\u4e0a\u3067\u30b9\u30da\u30fc\u30b9\u304c\uff12\u3064\u3042\u308c\u3070\uff0cclassName\u3067\u53d6\u5f97\u3055\u308c\u308b\u6587\u5b57\u5217\u3082\u305d\u306e\u3088\u3046\u306b\u306a\u308b\u3002 getAttribute(\"class\")\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\u3082\u540c\u3058\u6319\u52d5\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\uff1a <html> <body> <div class=\"hoge1 fuga1\"> \u30c6\u30b9\u30c8\u7528\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomputer-technology.hateblo.jp%2Fentry%2F20140104%2Fp2\" title=\"JavaScript\u306eclassName\u5c5e\u6027\u306f\uff0c\u8981\u7d20\u306e\u8907\u6570\u306e\u30af\u30e9\u30b9\u540d\u3092\u30b9\u30da\u30fc\u30b9\u533a\u5207\u308a\u3067\u53d6\u5f97\u3059\u308b - \u30e2\u30d0\u30a4\u30eb\u901a\u4fe1\u3068IT\u6280\u8853\u3092\u30b3\u30c4\u30b3\u30c4\u52c9\u5f37\u3059\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["javascript","css","html","\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9"],"published":"2014-01-04 00:00:00","author_name":"TipsMemo","author_url":"https://blog.hatena.ne.jp/TipsMemo/"}