ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
综合练习一 效果图: ![](https://box.kancloud.cn/7e7e52502515daed63d4d9006d55ecb1_466x850.jpg) HTML ~~~ <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <title></title> <link rel="stylesheet" href="css/baoming.css" /> </head> <body> <p id="header">参会人信息(报名时间:即日起--2018年6月12日)</p> <div id="wrapper"> <div class="item"> <span class="star">*</span>姓名: </div> <div class="item"> <input type="text" /> </div> <div class="item"> <input type="radio" name="sex"/>男 <input type="radio" name="sex" />女 </div> <div class="item"> <span class="star">*</span>手机: </div> <div class="item"> <input type="text" /> </div> <div class="item"> <span class="star">*</span>单位: </div> <div class="item"> <input type="text" /> </div> <div class="item"> <span class="star">*</span>邮箱: </div> <div class="item"> <input type="text" /> </div> <div class="item"> <div class="item"> <span class="star">*</span>参会议程: </div> <!-- class="item1 item2 item3..." 样式的叠加 --> <div class="item small"> <input type="checkbox" checked/> 6月13日主论坛 </div> <div class="item small"> 新工科产业学院交流会暨人才培养高峰论坛 </div> </div> </div> <button id="btn_save" type="button">保存</button> </body> </html> ~~~ CSS ~~~ body { background-color: #F1F1F1; margin-top:0px; margin-left: 0px; margin-right: 0px; } div { color:#ACACAC; font-weight: bold; } #header { background-color: #6E9AD7; height:50px; margin-top:0px; color:white; text-align: center; line-height:50px; } #wrapper { border-top:2px solid #E7E7E7; margin-top:34px; padding-top: 24px; padding-left: 24px; padding-right: 24px; } .item { margin-bottom: 10px; } .star { color:#9EC0C3; margin-right:5px; } /*属性选择器*/ input[type="text"] { width:100%; height:34px; border-radius: 5px; } .small { font-size: 14px; } #btn_save { width:100%; height:40px; background-color: #2B6ECB; border:none; color:white; font-size:18px; } ~~~