1. .every{
    2. width:650px;/*设置宽度*/
    3. margin: 100px auto;/*居中显示*/
    4. font-size: 15px;/*设置字体大小*/
    5. background-color: #F5F5F5;
    6. }
    7. h1{
    8. color: #777;/*设置字体颜色*/
    9. font-size: 25px;/*设置标题字体大小*/
    10. text-align: center;/*标题居中显示*/
    11. }
    12. .text0{
    13. width: 638px;/*设置输入文本宽度*/
    14. height: 150px;/*设置输入文本框高度*/
    15. border: 1px solid #ccc;/*设置边框*/
    16. border-radius: 5px;/*圆角*/
    17. padding: 5px;/*从盒子内部撑开5px*/
    18. resize: none;/*阻止文本域可拖动的设置*/
    19. }
    20. input[type="checkbox"]{
    21. cursor: pointer;/*选择框带有小手标识*/
    22. }
    23. input[type="button"]{
    24. cursor: pointer;
    25. }
    26. input[type="text"]:focus{
    27. background: #F0F8FF;/*给输入框设置获取焦点时的背景色*/
    28. }
    29. #text1:focus{
    30. background: #F0F8FF;/*给输入框设置获取焦点时的背景色*/
    31. }