-
Notifications
You must be signed in to change notification settings - Fork 7
/
105bdb89.d5e377f1.js
1 lines (1 loc) · 7.09 KB
/
105bdb89.d5e377f1.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{142:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return o})),n.d(t,"metadata",(function(){return b})),n.d(t,"rightToc",(function(){return l})),n.d(t,"default",(function(){return p}));var r=n(2),a=n(9),c=(n(0),n(199)),o={title:"\u6ce8\u91ca\u89c4\u8303"},b={id:"css/note",title:"\u6ce8\u91ca\u89c4\u8303",description:"> Comments begin with the characters `/*` and end with the characters `*/`. They may occur anywhere outside other tokens, and their contents have no influence on the rendering. Comments may not be nested.",source:"@site/docs/css/note.md",permalink:"/jdc_fe_guide/docs/css/note",editUrl:"https://git.jd.com/JDC_FE/jdc_fe_guide/tree/master/docs/css/note.md",sidebar:"someSidebar",previous:{title:"\u4ee3\u7801\u89c4\u8303",permalink:"/jdc_fe_guide/docs/css/code"},next:{title:"SASS\u89c4\u8303",permalink:"/jdc_fe_guide/docs/css/sass"}},l=[{value:"\u56e2\u961f\u7ea6\u5b9a",id:"\u56e2\u961f\u7ea6\u5b9a",children:[]}],i={rightToc:l};function p(e){var t=e.components,n=Object(a.a)(e,["components"]);return Object(c.b)("wrapper",Object(r.a)({},i,n,{components:t,mdxType:"MDXLayout"}),Object(c.b)("blockquote",null,Object(c.b)("p",{parentName:"blockquote"},"Comments begin with the characters ",Object(c.b)("inlineCode",{parentName:"p"},"/*")," and end with the characters ",Object(c.b)("inlineCode",{parentName:"p"},"*/"),". They may occur anywhere outside other tokens, and their contents have no influence on the rendering. Comments may not be nested.")),Object(c.b)("ul",null,Object(c.b)("li",{parentName:"ul"},"\u6ce8\u91ca\u4ee5\u5b57\u7b26 ",Object(c.b)("inlineCode",{parentName:"li"},"/*")," \u5f00\u59cb\uff0c\u4ee5\u5b57\u7b26 ",Object(c.b)("inlineCode",{parentName:"li"},"*/")," \u7ed3\u675f"),Object(c.b)("li",{parentName:"ul"},"\u6ce8\u91ca\u4e0d\u80fd\u5d4c\u5957")),Object(c.b)("pre",null,Object(c.b)("code",Object(r.a)({parentName:"pre"},{className:"language-css"}),"/*Comment Text*/\n")),Object(c.b)("h3",{id:"\u56e2\u961f\u7ea6\u5b9a"},"\u56e2\u961f\u7ea6\u5b9a"),Object(c.b)("h4",{id:"\u5355\u884c\u6ce8\u91ca"},"\u5355\u884c\u6ce8\u91ca"),Object(c.b)("p",null,"\u6ce8\u91ca\u5185\u5bb9\u7b2c\u4e00\u4e2a\u5b57\u7b26\u548c\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u90fd\u662f\u4e00\u4e2a\u7a7a\u683c\u5b57\u7b26\uff0c\u5355\u72ec\u5360\u4e00\u884c\uff0c\u884c\u4e0e\u884c\u4e4b\u95f4\u76f8\u9694\u4e00\u884c"),Object(c.b)("p",null,Object(c.b)("em",{parentName:"p"},"\u63a8\u8350\uff1a")),Object(c.b)("pre",null,Object(c.b)("code",Object(r.a)({parentName:"pre"},{className:"language-css"}),"/* Comment Text */\n.jdc{}\n\n/* Comment Text */\n.jdc{}\n")),Object(c.b)("p",null,Object(c.b)("em",{parentName:"p"},"\u4e0d\u63a8\u8350\uff1a")),Object(c.b)("pre",null,Object(c.b)("code",Object(r.a)({parentName:"pre"},{className:"language-css"}),"/*Comment Text*/\n.jdc{\n display: block;\n}\n.jdc{\n display: block;/*Comment Text*/\n}\n")),Object(c.b)("h4",{id:"\u6a21\u5757\u6ce8\u91ca"},"\u6a21\u5757\u6ce8\u91ca"),Object(c.b)("p",null,"\u6ce8\u91ca\u5185\u5bb9\u7b2c\u4e00\u4e2a\u5b57\u7b26\u548c\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u90fd\u662f\u4e00\u4e2a\u7a7a\u683c\u5b57\u7b26\uff0c",Object(c.b)("inlineCode",{parentName:"p"},"/*")," \u4e0e \u6a21\u5757\u4fe1\u606f\u63cf\u8ff0\u5360\u4e00\u884c\uff0c\u591a\u4e2a\u6a2a\u7ebf\u5206\u9694\u7b26",Object(c.b)("inlineCode",{parentName:"p"},"-"),"\u4e0e",Object(c.b)("inlineCode",{parentName:"p"},"*/"),"\u5360\u4e00\u884c\uff0c\u884c\u4e0e\u884c\u4e4b\u95f4\u76f8\u9694\u4e24\u884c"),Object(c.b)("p",null,Object(c.b)("em",{parentName:"p"},"\u63a8\u8350\uff1a")),Object(c.b)("pre",null,Object(c.b)("code",Object(r.a)({parentName:"pre"},{className:"language-css"}),"/* Module A\n---------------------------------------------------------------- */\n.mod_a {}\n\n\n/* Module B\n---------------------------------------------------------------- */\n.mod_b {}\n")),Object(c.b)("p",null,Object(c.b)("em",{parentName:"p"},"\u4e0d\u63a8\u8350\uff1a")),Object(c.b)("pre",null,Object(c.b)("code",Object(r.a)({parentName:"pre"},{className:"language-css"}),"/* Module A ---------------------------------------------------- */\n.mod_a {}\n/* Module B ---------------------------------------------------- */\n.mod_b {}\n")),Object(c.b)("h4",{id:"\u6587\u4ef6\u4fe1\u606f\u6ce8\u91ca"},"\u6587\u4ef6\u4fe1\u606f\u6ce8\u91ca"),Object(c.b)("p",null,"\u5728\u6837\u5f0f\u6587\u4ef6\u7f16\u7801\u58f0\u660e ",Object(c.b)("inlineCode",{parentName:"p"},"@charset")," \u8bed\u53e5\u4e0b\u9762\u6ce8\u660e\u9875\u9762\u540d\u79f0\u3001\u4f5c\u8005\u3001\u521b\u5efa\u65e5\u671f\u7b49\u4fe1\u606f"),Object(c.b)("pre",null,Object(c.b)("code",Object(r.a)({parentName:"pre"},{className:"language-css"}),'@charset "UTF-8";\n/**\n * @desc File Info\n * @author Author Name\n * @date 2015-10-10\n */\n')),Object(c.b)("p",null,"\u66f4\u591a\u5173\u4e8eCSS\u6ce8\u91ca\uff1a",Object(c.b)("a",Object(r.a)({parentName:"p"},{href:"http://www.w3.org/TR/2011/REC-CSS2-20110607/syndata.html#comments"}),"#Comments")))}p.isMDXComponent=!0},199:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d}));var r=n(0),a=n.n(r);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},c=Object.keys(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=a.a.createContext({}),p=function(e){var t=a.a.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):b({},t,{},e)),n},s=function(e){var t=p(e.components);return a.a.createElement(i.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=Object(r.forwardRef)((function(e,t){var n=e.components,r=e.mdxType,c=e.originalType,o=e.parentName,i=l(e,["components","mdxType","originalType","parentName"]),s=p(n),m=r,d=s["".concat(o,".").concat(m)]||s[m]||u[m]||c;return n?a.a.createElement(d,b({ref:t},i,{components:n})):a.a.createElement(d,b({ref:t},i))}));function d(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var c=n.length,o=new Array(c);o[0]=m;var b={};for(var l in t)hasOwnProperty.call(t,l)&&(b[l]=t[l]);b.originalType=e,b.mdxType="string"==typeof e?e:r,o[1]=b;for(var i=2;i<c;i++)o[i]=n[i];return a.a.createElement.apply(null,o)}return a.a.createElement.apply(null,n)}m.displayName="MDXCreateElement"}}]);