Smart UI 前台开发帮助 1
开发规范 1
HTML 1
HTML 命名规范 类型 命名对象 命名 代码 Demo input 标签 类型简写+ P_+业务名(需求阶段已定义好)_+操作名( Add/Edit/Search 等)+ 操作对象+ 命名 text/password txt button btn checkbox chk radio rdo hidden hid file fle 常用 textarea txt select sel option op a lnk img img label lbl font fnt button btn 容器标签 (业务)命名(首字母小写) div ul ol li < li id="searchSupp"> dd < dd id="searchSupp"> dt < dt id="searchSupp"> dl < dl id="searchSupp"> table < table id="searchSupp"> th < th id="searchSupp"> tr < tr id="searchSupp"> td < td id="searchSupp"> tbody < dl id="searchSupp"> thead < thead id="searchSupp"> tfoot < tfoot id="searchSupp"> samp < samp id="searchSupp"> span < span id="searchSupp"> p < p id="searchSupp"> 其他 hr br < br /> 特殊命名 所有用于查询的标签, 类型简写后加’s’ 如:查询:txtsName,编辑:txtName 1
HTML 编写要求 1) 要求只能使用上述规定的标签 2