{"id":242,"date":"2016-02-05T15:04:04","date_gmt":"2016-02-05T06:04:04","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/02\/05\/css_arrow"},"modified":"2016-02-05T15:04:04","modified_gmt":"2016-02-05T06:04:04","slug":"css_arrow","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2016\/02\/05\/css_arrow\/","title":{"rendered":"CSS\u3060\u3051\u3067\u77e2\u5370\u3092\u4f5c\u3063\u3066\u307f\u305f"},"content":{"rendered":"
\u30ef\u30fc\u30ad\u30f3\u30b0\u30de\u30b6\u30fc\u306e\u6c60\u5cf6\u3067\u3059\u3002
\n\u5e74\u5ea6\u672b\u306b\u5dee\u3057\u639b\u304b\u308a\u3001\u4fdd\u8b77\u8005\u4f1a\u3084\u5b66\u6821\u8aac\u660e\u4f1a\u3001\u5352\u5712\u5bfe\u7b56\u59d4\u54e1\u306a\u3069\u3067\u5fd9\u3057\u304f\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n
\u73fe\u5728\u3001\u81ea\u793e\u306e\u30b3\u30fc\u30dd\u30ec\u30fc\u30c8\u30b5\u30a4\u30c8\u306e\u5236\u4f5c\u3092\u3057\u3066\u304a\u308a\u3001\u521d\u3081\u3066\u3084\u3063\u3066\u307f\u308b\u3053\u3068\u304c\u3042\u3063\u305f\u308a\u3001\u8a66\u3057\u3066\u307f\u305f\u304b\u3063\u305f\u3053\u3068\u3092\u3084\u3063\u3066\u307f\u305f\u308a\u3068\u3001\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\u306b\u3082\u826f\u3044\u6a5f\u4f1a\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002
\n\u305d\u3093\u306a\u4e2d\u3001\u753b\u50cf\u3092\u4f7f\u308f\u305a\u306bCSS\u3092\u4f7f\u3063\u3066\u77e2\u5370\u3092\u4f5c\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u5099\u5fd8\u9332\u3082\u517c\u306d\u3066\u3001\u3044\u304f\u3064\u304b\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
\u30b5\u30dd\u30fc\u30c8\u30d6\u30e9\u30a6\u30b6\u306f\u3001\u57fa\u672c\u7684\u306b\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002 \u307e\u305a\u306f\u3001\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u306a\u77e2\u5370\u3067\u3059\u3002\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u3066\u307f\u307e\u3057\u305f\u3002 <\/p>\n HTML<\/strong><\/p>\n CSS<\/strong><\/p>\n \u76f4\u89d2\u306b\u66f2\u304c\u308b\u77e2\u5370\u3067\u3059\u3002 <\/p>\n HTML<\/strong><\/p>\n CSS<\/strong><\/p>\n \u4f5c\u696d\u624b\u9806\u306a\u3069\u3092\u30ea\u30b9\u30c8\u3067\u914d\u7f6e\u3057\u3066\u3001\u6d41\u308c\u3092\u9806\u756a\u306b\u8aac\u660e\u3059\u308b\u3068\u304d\u306a\u3069\u306b\u4f7f\u3048\u305d\u3046\u306a\u77e2\u5370\u3067\u3059\u3002 <\/p>\n HTML<\/strong><\/p>\n CSS<\/strong><\/p>\n \u30e1\u30cb\u30e5\u30fc\u3068\u304b\u3001\u30dc\u30bf\u30f3\u306b\u4f7f\u3046\u3088\u3046\u306a\u77e2\u5370\u3067\u3059\u3002 <\/p>\n HTML<\/strong><\/p>\n CSS<\/strong><\/p>\n \u4e09\u89d2\u306e\u90e8\u5206\u304c\u3001\u56db\u89d2\u90e8\u5206\u3068\u540c\u3058\u5e45\u306e\u77e2\u5370\u3067\u3059\u3002 <\/p>\n HTML<\/strong><\/p>\n CSS<\/strong><\/p>\n CSS\u3067\u3067\u304d\u308b\u3053\u3068\u304c\u5897\u3048\u3066\u304d\u3066\u3001\u305d\u308c\u307e\u3067\u753b\u50cf\u3092\u66f8\u304d\u51fa\u3057\u305f\u308a\u3001\u3082\u306e\u3059\u3054\u304f\u5de5\u592b\u3057\u3066\u3084\u3063\u3068\u5b9f\u73fe\u3057\u3066\u3044\u305f\u8868\u73fe\u304c\u3001\u7c21\u5358\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u5b09\u3057\u3044\u3067\u3059\u3002\uff08\u89d2\u4e38\u3068\u304b\uff01\uff09 \u540c\u3058\u65b9\u5411\u6027\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u5439\u304d\u51fa\u3057\u3082\u4f5c\u3063\u305f\u308a\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u6b21\u56de\u306e\u5185\u5bb9\u306b\u3057\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
\n::before<\/code> \u3084
::after<\/code> \u3092\u4f7f\u308f\u305a\u3001\u5225\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u6271\u3048\u3070\u3001\u3082\u3063\u3068\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3082\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002
\n\u4eca\u56de\u306f\u3001HTML\u304c\u30b7\u30f3\u30d7\u30eb\u306b\u3067\u304d\u308b\u65b9\u6cd5\u3067\u8003\u3048\u307e\u3057\u305f\u3002<\/p>\n\u5de6\u304b\u3089\u53f3\u306e\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u77e2\u5370<\/h2>\n
\n\uff3bIE8\u301c\uff08\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u306fIE10\u301c\uff09\uff3d<\/p>\n<div class="arrow1"><\/div><\/code><\/pre>\n
.arrow1{\n position: relative;\n width: 200px;\n height: 20px;\n background: linear-gradient(to right, #fff, #666);\n}\n.arrow1::after{\n content: "";\n position: absolute;\n top: -10px;\n right: -20px;\n border-left: 20px solid #666;\n border-top: 20px solid transparent;\n border-bottom: 20px solid transparent;\n}<\/code><\/pre>\n
\u5de6\u4e0a\u304b\u3089\u53f3\u4e0b\u3078\u306eL\u5b57\u77e2\u5370<\/h2>\n
\n\u30e9\u30a4\u30f3\u306f\u3001\u30dc\u30c3\u30af\u30b9\u8981\u7d20\u306e\u30dc\u30fc\u30c0\u30fc\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u30c9\u30c3\u30c8\u306e\u7dda\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002
\n\uff3bIE8\u301c\uff3d<\/p>\n<div class="arrow2"><\/div><\/code><\/pre>\n
.arrow2{\n position: relative;\n width: 200px;\n height: 50px;\n border-top: 8px dotted #666;\n border-right: 8px dotted #666;\n box-sizing: border-box;\n}\n.arrow2::after{\n content: "";\n position: absolute;\n bottom: -14px;\n right: -17px;\n border-top: 14px solid #666;\n border-left: 14px solid transparent;\n border-right: 14px solid transparent;\n}<\/code><\/pre>\n
\u4e0a\u304b\u3089\u4e0b\u3078\u306e\u5e45\u5e83\u77e2\u5370<\/h2>\n
\n\u25bc\u306e\u90e8\u5206\u304c\u5de6\u306b\u306f\u307f\u51fa\u3055\u306a\u3044\u3088\u3046\u3001\u25a0\u306e\u90e8\u5206\u3082\u3000::before<\/code>\u3000\u3067\u8ffd\u52a0\u3057\u3066\u3001\u4e2d\u592e\u5bc4\u305b\u306b\u3057\u3066\u3044\u307e\u3059\u3002
\n\uff3bIE10\u301c\uff3d<\/p>\n<div class="arrow3"><\/div><\/code><\/pre>\n
.arrow3{\n width: 200px;\n}\n.arrow3::before{\n content: "";\n display: block;\n margin: 0 auto;\n width: 120px;\n height: 50px;\n background: #666;\n}\n.arrow3::after{\n content: "";\n display:block;\n border-top: 100px solid #666;\n border-left: 100px solid transparent;\n border-right: 100px solid transparent;\n transform-origin: left top;\n transform: scaleY(.5);\n}<\/code><\/pre>\n
\u7d30\u3044\uff1e\u77e2\u5370<\/h2>\n
\n\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u306b\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u3042\u308b\u5f62\u3067\u3059\u304c\u3001\u4ed6\u306b\u30a2\u30a4\u30b3\u30f3\u30d5\u30a9\u30f3\u30c8\u4f7f\u308f\u306a\u3044\u3057\u3001\u9762\u5012\u3068\u3044\u3046\u5834\u5408\u306f\u3001\u3053\u308c\u3067\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002
\n\uff3bIE10\u301c\uff3d<\/p>\n<div class="arrow4"><\/div><\/code><\/pre>\n
.arrow4{\n width: 50px;\n height: 50px;\n border-top: 5px solid #666;\n border-right: 5px solid #666;\n transform: rotate(45deg);\n}<\/code><\/pre>\n
\u8a18\u4e8b\u306e\u30bf\u30b0\u306a\u3069\u306b\u4f7f\u3048\u305d\u3046\u306a\u77e2\u5370<\/h2>\n
\n\u8a18\u4e8b\u306e\u30bf\u30b0\u3092\u8868\u3059\u306e\u306b\u3082\u4f7f\u3048\u307e\u3059\u306d\u3002
\n\uff3bIE10\u301c\uff3d<\/p>\n<div class="arrow5">\u77e2\u5370\u3068\u3044\u3046\u3088\u308a\u3001\u30bf\u30b0\uff1f<\/div><\/code><\/pre>\n
.arrow5{\n position: relative;\n display:inline-block;\n margin-left: 20px;\n padding: 0 10px 0 5px;\n background: #666;\n border-top-right-radius: 3px;\n border-bottom-right-radius: 3px;\n font-size: 14px;\n color: #fff;\n line-height: 28px;\n}\n.arrow5::before{\n content: "";\n position: absolute;\n top: 0;\n left: -14px;\n border-right: 14px solid #666;\n border-top: 14px solid transparent;\n border-bottom: 14px solid transparent;\n transform-origin: right top;\n transform: scaleX(.7);\n}<\/code><\/pre>\n
\u6700\u5f8c\u306b<\/h2>\n
\n\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u304c\u53e4\u3044\u3068\u3001\u307e\u3060\u307e\u3060\u60a9\u3080\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u2026\u3002<\/p>\n