标签:空格 rgb 符号 推荐 无限 自定义 enter log 通配符
选择器是一个选择标签的过程
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Document</title> <style type="text/css"> /*样式表内容 */ div{ font-size: 50px; color: orange; background-color: rgb(0, 1, 0); width: 300px; height: 200px; } p{ font-size: 20px; color: #00ffff; } </style> </head> <body> <div>AAAAA</div> <div>BBBBB</div> <p>CCCCC</p> <p>DDDDD</p> <div>AAAAA</div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Doucment</title> <meta charset="utf-8"> <style type="text/css"> .box{ font-size: 40px; color: #ff0000; background-color: rgb(255, 222, 111); width: 400px; height: 200px; } .miss{ text-indent: 2em; text-align: right; } .G{ font-size: 200px; color: blue; } .o1{ font-size: 200px; color: #990000; } .o2{ font-size: 200px; color: orange; } .g{ font-size: 200px; color: blue; } .l{ font-size: 200px; color: #009900; } .e{ font-size: 200px; color: orange; } </style> </head> <body> <div class="box miss">AAAAA</div> <div>BBBBB</div> <p class="box">CCCCC</p> <p>DDDDD</p> <span class="box">EEEEE</span> <br> <br> <br> <span class="G">G</span> <span class="o1">o</span> <span class="o2">o</span> <span class="g">g</span> <span class="l">l</span> <span class="e">e</span> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Document</title> <style type="text/css"> #box{ font-size: 40px; color: rgb(0, 0, 255); background-color: rgb(255, 255, 0); } #miss{ text-align: center; } .box{ text-indent: 2em; } </style> </head> <body> <div id="box" class="box">AAAAA</div> <div>BBBBB</div> <p>CCCCC</p> <p>DDDDD</p> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Document</title> <style type="text/css"> *{ font-size: 100px; color: red; } </style> </head> <body> <div>AAAAA</div> <div>BBBBB</div> <p>CCCCC</p> <p>DDDDD</p> <span>EEEEE</span> </body> </html>
<head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box{ font-size: 50px; } div.box{ color: red; } #miss{ color: orange; } div#miss{ width: 400px; height: 300px; background-color: green; } .box#miss{ width: 400px; height: 400px; background-color: orange; } </style> </head> <body> <div class="box" id="miss">AAAAA</div> <p class="box">BBBBB</p> <div id="miss">CCCCC</div> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box{ font-size: 40px; color: red; } div p span{ font-size: 50px; } .box span{ background-color: blue; } .box .miss{ color: red; } </style> </head> <body> <div class="box"> <p> <span class="miss">AAAAA</span> </p> </div> <div class="box"> <span>BBBBB</span> </div> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> div>span{ color: red; font-size: 40px; } p>span{ color: green; font-size: 40px; } </style> </head> <body> <div> <p> <span>AAAAA</span> </p> <span>BBBBB</span> </div> </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box,#miss,span,h1{ font-size: 100px; color: #fff; background-color: green; } </style> </head> <body> <div class="box">AAAAA</div> <p id="miss">BBBBB</p> <span>CCCCC</span> <h1>DDDDD</h1> </body> </html>
标签:空格 rgb 符号 推荐 无限 自定义 enter log 通配符
原文地址:http://www.cnblogs.com/fanxiaocong/p/6443919.html