{"id":837,"date":"2017-10-30T15:54:58","date_gmt":"2017-10-30T06:54:58","guid":{"rendered":"https:\/\/clouds.tokyo\/blog\/?p=837"},"modified":"2017-11-10T16:33:07","modified_gmt":"2017-11-10T07:33:07","slug":"jquery_css_important","status":"publish","type":"post","link":"https:\/\/clouds.tokyo\/blog\/jquery_css_important\/","title":{"rendered":"jQuery\u3067\u30b9\u30bf\u30a4\u30eb\u306b!important\u3092\u6307\u5b9a\u3059\u308b"},"content":{"rendered":"<p>jQuery\u3067\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u3001\u57fa\u672c\u7684\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3067\u3059\u304c<\/p>\n<pre>\r\n$(\u30bb\u30ec\u30af\u30bf).css('margin', '10px');\r\n<\/pre>\n<p>\u30b9\u30bf\u30a4\u30eb\u306b!important\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u65b9\u6cd5\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre>\r\n\/\/ \u3053\u308c\u306f\u53cd\u6620\u3055\u308c\u306a\u3044\r\n$(\u30bb\u30ec\u30af\u30bf).css('margin', '10px !important');\r\n<\/pre>\n<p>!important\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306fcssText\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n$(\u30bb\u30ec\u30af\u30bf).css('cssText', 'margin: 10px !important;');\r\n<\/pre>\n<p>\u305f\u3060\u3057\u3001\u3053\u306ecssText\u306f\u30b9\u30bf\u30a4\u30eb\u3092\u7f6e\u304d\u63db\u3048\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u306e\u3067<br \/>\n\u4ed6\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u30b9\u30bf\u30a4\u30eb\u306f\u7121\u52b9\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery\u3067\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306f\u3001\u57fa\u672c\u7684\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3067\u3059\u304c $(\u30bb\u30ec\u30af\u30bf).css(&#8216;margin&#8217;, &#8217;10px&#8217;); \u30b9\u30bf\u30a4\u30eb\u306b!important\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u65b9\u6cd5\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002 \/\/ \u3053\u308c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/clouds.tokyo\/blog\/jquery_css_important\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;jQuery\u3067\u30b9\u30bf\u30a4\u30eb\u306b!important\u3092\u6307\u5b9a\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":""},"categories":[2],"tags":[93,109,350,351],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pezW3u-dv","jetpack-related-posts":[{"id":735,"url":"https:\/\/clouds.tokyo\/blog\/jquery_footer_fix\/","url_meta":{"origin":837,"position":0},"title":"\u3010jQuery\u3011\u77ed\u3044\u30da\u30fc\u30b8\u3060\u3051\u30d5\u30c3\u30bf\u30fc\u3092\u6700\u4e0b\u90e8\u306b\u56fa\u5b9a\u3059\u308b","author":"yamamoto","date":"2017\u5e745\u670826\u65e5","format":false,"excerpt":"\u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u5c11\u306a\u3044\u306a\u3069\u3001\u30d5\u30c3\u30bf\u30fc\u3092\u542b\u3081\u305f\u30da\u30fc\u30b8\u306e\u7e26\u5e45\u304c\u30d6\u30e9\u30a6\u30b6\u306e\u7e26\u5e45\u3088\u308a\u77ed\u3044\u5834\u5408\u304c\u3042\u308b\u3068\u601d\u3044\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":696,"url":"https:\/\/clouds.tokyo\/blog\/css_vertical_align\/","url_meta":{"origin":837,"position":1},"title":"\u3010CSS\u3011vertical-align\u304c\u52b9\u304b\u306a\u3044\u3068\u304d\u306b\u78ba\u8a8d\u3059\u308b\u3053\u3068","author":"yamamoto","date":"2017\u5e744\u670826\u65e5","format":false,"excerpt":"\u7e26\u65b9\u5411\u306e\u8868\u793a\u4f4d\u7f6e\u3092\u6574\u3048\u3066\u304f\u308c\u308b\u30b9\u30bf\u30a4\u30eb\u300cvertical-align\u300d\u3067\u3059\u304c\u3001 \u6a2a\u65b9\u5411\u306e\u300ctext-\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":708,"url":"https:\/\/clouds.tokyo\/blog\/jquery_eventhandler\/","url_meta":{"origin":837,"position":2},"title":"\u3010jQuery\u3011\u30a4\u30d9\u30f3\u30c8\u304c\u91cd\u8907\u767b\u9332\u3055\u308c\u308b\u306e\u3092\u9632\u3050\u7c21\u5358\u306a\u65b9\u6cd5","author":"yamamoto","date":"2017\u5e744\u670828\u65e5","format":false,"excerpt":"\u307e\u305a\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306e\u767b\u9332\u306f $(\u30bb\u30ec\u30af\u30bf).on('click',function() { \/\/ \u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1449,"url":"https:\/\/clouds.tokyo\/blog\/css-triangle2\/","url_meta":{"origin":837,"position":3},"title":"CSS\u3067\u4e09\u89d2\u5f62\u3092\u4f5c\u308b\uff08\u5fdc\u7528\uff09","author":"yamamoto","date":"2021\u5e747\u67081\u65e5","format":false,"excerpt":"\u524d\u56de\u3001CSS\u3067\u4e09\u89d2\u5f62\u3092\u4f5c\u308a\u307e\u3057\u305f\u304c CSS\u3067\u4e09\u89d2\u5f62\u3092\u4f5c\u308b\uff08\u57fa\u672c\uff09 \u4f7f\u3044\u9053\u304c\u306a\u304b\u3063\u305f\u306e\u3067 \u4e09\u89d2\u5f62\u3067\u516d\u89d2\u2026","rel":"","context":"\u30c4\u30fc\u30eb","block_context":{"text":"\u30c4\u30fc\u30eb","link":"https:\/\/clouds.tokyo\/blog\/category\/%e3%83%84%e3%83%bc%e3%83%ab\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":465,"url":"https:\/\/clouds.tokyo\/blog\/jquery_checked\/","url_meta":{"origin":837,"position":4},"title":"\u3010jQuery\u3011\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f\u9805\u76ee\u3092\u53d6\u5f97","author":"yamamoto","date":"2011\u5e742\u670819\u65e5","format":false,"excerpt":"jQuery\u3092\u4f7f\u3046\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u30c1\u30a7\u30c3\u30af\u3055\u308c\u305f\u9805\u76ee\u3060\u3051\u3092\u7c21\u5358\u306b\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002 \u305f\u3068\u3048\u3070\u300cche\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1691,"url":"https:\/\/clouds.tokyo\/blog\/jquery-validate-js\/","url_meta":{"origin":837,"position":5},"title":"\u3010jQuery\u3011jquery.validate.js\u3067\u4efb\u610f\u306eclass\u306b\u5bfe\u3057\u3066\u72ec\u81ea\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b","author":"yamamoto","date":"2024\u5e747\u67089\u65e5","format":false,"excerpt":"\u4f8b\u3048\u3070\u3001validation-alpha\u3068\u3044\u3046\u30af\u30e9\u30b9\u304c\u6307\u5b9a\u3055\u308c\u305f\u3089\u534a\u89d2\u82f1\u5b57\u306e\u307f\u5165\u529b\u53ef\u80fd\u306b\u3057\u305f\u3044\u3068\u304d \u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/837"}],"collection":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/comments?post=837"}],"version-history":[{"count":7,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/837\/revisions"}],"predecessor-version":[{"id":865,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/837\/revisions\/865"}],"wp:attachment":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/media?parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/categories?post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/tags?post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}