随笔分类 -  HTML

摘要:交集选择器是由两个选择器直接连接构成的,其中第一个必须是标签选择器,第二个必须是类选择器或者ID选择器,这两个选择器之间不能有空格,必须连续书写 <html> <head> <title>交集选择器</title> <style type="text/css"> p.txt{ color:blue; 阅读全文
posted @ 2017-05-22 22:50 顶起脚尖仰望 阅读(3671) 评论(0) 推荐(0)
摘要:ID选择器{ 属性:属性值 } <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=gb2312"/> <title>ID选择器的应用</title> <style type="text/css"> #fi 阅读全文
posted @ 2017-05-20 20:25 顶起脚尖仰望 阅读(1503) 评论(0) 推荐(0)
摘要:把外层的标签写在前面,内层的标签写在后面,之间用空格分隔 <html> <head> <title>后代选择器</title> <style type="text/css"> h3 strong{ color:blue; font-size:36px; } </style> </head> <bod 阅读全文
posted @ 2017-05-20 20:04 顶起脚尖仰望 阅读(2908) 评论(0) 推荐(0)
摘要:类选择器{ 属性:属性值 } <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=gb2312"/> <title>类选择器的用法</title> <style type="text/css"> .gree 阅读全文
posted @ 2017-05-18 21:26 顶起脚尖仰望 阅读(837) 评论(0) 推荐(0)
摘要:标签选择器{ 属性:属性值 } <html> <head> <meta http-equiv="Contene-Type" content="text/html;charset=gb2312"/> <title>标题选择器</title> <style> h3{ color:#090; } </st 阅读全文
posted @ 2017-05-17 20:44 顶起脚尖仰望 阅读(704) 评论(0) 推荐(0)
摘要:<frameset cols="25%,50%,*" rows="50%,*" border="5"> <frame src="the_first.html"> </frameset> 解释如下: 其中,<frameset>标签的cols属性表示将页面横向分割为几列。例如,cols="25%,50% 阅读全文
posted @ 2017-05-09 22:41 顶起脚尖仰望 阅读(840) 评论(0) 推荐(0)