摘要: 1、如果希望某个样式可以被多个文件使用,为了避免重复编写代码的繁琐,可以将该样式放入css文件中,其他文件通过link调用 新建一个css文件:common.css,写入某个样式: .c1{ background-color: red; color: white; } .c2{ font-size: 阅读全文
posted @ 2020-02-19 18:20 凸凸yolotheway 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1、id选择器 如以下程序: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #i1{ background-color: #2459a2; height: 48p 阅读全文
posted @ 2020-02-19 18:00 凸凸yolotheway 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1、label标签, label标签中的for属性将label标签与input标签关联起来 <body> <label for="username">用户名:</label> <input id="username" type="text" name="user"/> <!-- label使用for 阅读全文
posted @ 2020-02-19 10:37 凸凸yolotheway 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1、table标签按规范来写,应该有表头与表内容 格式如下: <table border="1"> <thead> <tr> <th>表头</th> </tr> </thead> <tbody> <tr> <td>表内容</td> </tr> </tbody> </table> 如下为一个表格实例, 阅读全文
posted @ 2020-02-19 10:26 凸凸yolotheway 阅读(336) 评论(0) 推荐(0) 编辑