{"id":1373,"date":"2022-02-09T22:24:46","date_gmt":"2022-02-09T13:24:46","guid":{"rendered":"https:\/\/blog.wsd.sh\/?p=1373"},"modified":"2022-02-09T22:53:34","modified_gmt":"2022-02-09T13:53:34","slug":"jquery-datepicker-%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%81%aecss%e3%82%92%e5%a4%89%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/blog.wsd.sh\/?p=1373","title":{"rendered":"<small>JQuery DatePicker \u30ab\u30ec\u30f3\u30c0\u30fc\u306eCSS\u3092\u5909\u66f4<\/small>"},"content":{"rendered":"<p>\uff11\uff0eCSS\u3092\u5909\u3048\u308b\u65b9\u6cd5<br \/>\n1.1 firefox\u7b49\u306edeveloper tool\u7b49\u3067\u8a72\u5f53\u7b87\u6240\u306ecss\u3092\u78ba\u8a8d<br \/>\n1.2 \u5909\u3048\u305f\u3044CSS\u306e\u500b\u6240\u3092jQuery\u3067\u66f8\u304d\u63db\u3048\u308b<\/p>\n<p>\uff12\uff0e\u4f8b<br \/>\n(1) \u5168\u4f53\u306e\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u309215px\u306b<br \/>\n $(&#8220;.ui-datepicker&#8221;).css(&#8216;font-size&#8217;, 15);<\/p>\n<p>(2) Title\u306e\u9ad8\u3055\u30921.2em\u306b<br \/>\n $(&#8220;.ui-datepicker-title&#8221;).css(&#8220;line-height&#8221;, &#8220;1.2em&#8221;);<\/p>\n<p>(3) \u66dc\u65e5\u306e\u592a\u6587\u5b57\u3092\u666e\u901a\u306e\u6587\u5b57\u306b<br \/>\n $(&#8220;.ui-datepicker th&#8221;).css(&#8220;font-weight&#8221;, &#8220;normal&#8221;);<\/p>\n<p>(4) Title\u306e\u592a\u6587\u5b57\u3092\u666e\u901a\u306e\u6587\u5b57\u306b<br \/>\n $(&#8220;.ui-widget-header&#8221;).css(&#8220;font-weight&#8221;, &#8220;normal&#8221;);<\/p>\n<p>(5) \u65e5\u66dc\u65e5\u306e\u66dc\u65e5\u3092\u8d64\u8272\u306b<br \/>\n$(&#8220;.ui-datepicker-calendar th:nth-child(1) span&#8221;).css(&#8220;color&#8221;, &#8220;red&#8221;);<\/p>\n<p>(6) \u571f\u66dc\u65e5\u306e\u66dc\u65e5\u3092\u9752\u8272\u306b<br \/>\n$(&#8220;.ui-datepicker-calendar th:nth-child(7) span&#8221;).css(&#8220;color&#8221;, &#8220;blue&#8221;);<\/p>\n<p>\uff13\uff0ecode<\/p>\n<pre>\r\n$( \"#datepicker1\" ).datepicker({\r\n   beforeShow: function(input, inst){\r\n     setTimeout(function(){\r\n        $(\u201d.ui-datepicker\").css(\"font-size\", 15);\r\n        $(\".ui-datepicker-title\").css(\"line-height\", \"1.2em\");\r\n        $(\".ui-datepicker th\").css(\"font-weight\", \"normal\");\r\n        $(\".ui-widget-header\").css(\"font-weight\", \"normal\");\r\n        $(\u201d.ui-datepicker-calendar th:nth-child(1) span\u201d).css(\u201dcolor\u201d, \"red\");\r\n        $(\u201d.ui-datepicker-calendar th:nth-child(7) span\u201d).css(\u201dcolor\u201d, \"blue\");\r\n     },10);\r\n  }\r\n}) \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uff11\uff0eCSS\u3092\u5909\u3048\u308b\u65b9\u6cd5 1.1 firefox\u7b49\u306edeveloper tool\u7b49\u3067\u8a72\u5f53\u7b87\u6240\u306ecss\u3092\u78ba\u8a8d 1.2 \u5909\u3048\u305f\u3044CSS\u306e\u500b\u6240\u3092jQuery\u3067\u66f8\u304d\u63db\u3048\u308b \uff12\uff0e\u4f8b (1) \u5168\u4f53\u306e\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u309215px\u306b $(&#038;#&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/1373"}],"collection":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1373"}],"version-history":[{"count":13,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/1373\/revisions"}],"predecessor-version":[{"id":1386,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=\/wp\/v2\/posts\/1373\/revisions\/1386"}],"wp:attachment":[{"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wsd.sh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}