zoukankan      html  css  js  c++  java
  • 样式表,css

    
    
    @charset "utf-8";
    /* CSS Document */
    <style type="text/css">
    *
    {
        margin:0px;/*注释*/
        padding:0px;
    }
    body
    {
        background-image:url(111.jpg);
        background-repeat:no-repeat;
        background-position:center top;}
    p
    {
        color:#00F;
        font-size:36px;
        text-decoration:underline;}
    p.sp
    {
        color:#F00;
        font-size:60px;
        text-decoration:line-through;}
        .main
    {
        height:50px;
        width:100%;
        text-align:center;
        border:2px thin red;}
    #main
    {
        height:50px;
        width:100%;
        text-align:center;
        border:2px thin red;}
    a:link
    {
        color:#000;
        text-decoration:none;}
    a:visited
    {
        color:#000;
        text-decoration:none;}
    a:hover
    {
        color:red;
        text-decoration:underline;}
    a:active
    {
        color:orange;
        text-decoration:underline;}
    </style>
    
    
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>样式表</title>
    
    <link href="Untitled-外部样式.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <p>你好</p>
    <a href="http://www.baidu.com/">百度一下你就知道</a>
    <div id="main">今天是星期二</div>
    <br />
    <br />
    <br />
    <p>今天</p>
    <p class="sp">你在</p>
    <p>汉企</p>
    <br />
    <br />
    <br />
    <div class="main">今天是星期二</div>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br /><br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br /><br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br /><br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br /><br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br /><br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br /><br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br /><br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    </body>
    </html>
  • 相关阅读:
    JSP中 == 和equals的区别
    使用Cookie保存用户名密码,再次登陆时将Cookie用户名密码取出来并直接放置到用户名密码文本框中
    学习Java Web开发中遇到的问题,及其解决方法
    部署、测试、服务工作的经验记录
    Python基础--dict字典操作
    Python基础--dict字典
    Python基础--预留空 5
    Python基础--预留空 4
    Python基础--tuple 元组
    Python基础--预留3
  • 原文地址:https://www.cnblogs.com/WY404683569/p/5067098.html
Copyright © 2011-2022 走看看