Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSS模块化

 CSS模块化

周祺

May 20, 2011
Tweet

More Decks by 周祺

Other Decks in Programming

Transcript

  1. 模块注释 /** * @name : mod-prompt * @author :youxiao *

    @version :1.0 * @type :基类 * @explain :操作结果提示模块 */ .mod-prompt{...} .mod-prompt h2{...} .mod-prompt p{...} .mod-prompt-success{…} .mod-prompt-fail{…} /* @end **/ /** * @name : mod-prompt-a * @author :youxiao * @version :1.0 * @type :扩展类 * @explain :操作结果提示模块 * @dependent : mod-prompt */ .mod-prompt-a{...} .mod-prompt-a h2{ ... } .mod-prompt-a p{ ... } /* @end **/
  2. 模块注释 /** * @name : business-prompt * @author :youxiao *

    @version :1.0 * @type :基类 * @explain :操作结果提示模块 * @caller:add_pic\modify_pic */ . business-prompt{...} . business-prompt h2{...} . business-prompt p{...} /* @end **/ /** * @name : business-prompt-a * @author :youxiao * @version :1.0 * @type :扩展类 * @explain :操作结果提示模块 * @dependent : business-prompt * @caller:del_pic */ .business-prompt-a{...} .business-prompt-a h2{ ... } .business-prompt-a p{ ... } /* @end **/
  3. Q&A