zoukankan      html  css  js  c++  java
  • html base1

    标题:

                标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。

                       <h1> 定义最大的标题。<h6> 定义最小的标题。

    段落:

                 <p align="absbottom"> <br /></p>

    HTML 文本格式化:

    HTML样式:结合css:

                外部访问方式:

                         <link> 定义资源引用。

                            #gg{
                            color: #710909;
                            font-weight: bold;
                            font-size: 50px;
                                  }

                                   <head>
                         <link rel="stylesheet" type="text/css" href="../css/styled.css" />
                                  </head>

                                  <body><h3 id="gg"> I am your sister</h3></body>

                               

                内部访问方式:

                                   <head>
                          <style type="text/css">
                              body {background-color: red}
                          p {margin-left: 20px}
                          </style>

                                   </head>

                                 

    <head>   <meta charset="utf-8">   <style type="text/css">    h2 {     color: #FFFFFF;     font-size: 200%;     font-family: "Book Antiqua";    }    a {     font-family: "Bodoni MT";     margin: 10ps;     padding: 10os;    }
    
       #back {     background-color: gray;    }
    
       #textcolor {     font-size: 150%;     color: #FFFFFF;    }
    
      </style>
    
     </head>
    
     <body id="back">
    
      <h2 align="center">Wanna Make a Deal?</h2>
    
      <p align="center" id="textcolor">    There are three doors. Behind two doors there are BAD THINGS.    <br />    Behind one door is an AWESOME THING.    <br />    Choose a door...   </p>   <div align="center">    <a><img src="../Image/blue_door.png" /></a>    <a><img src="../Image/orange_door_fire.png" /></a>    <a><img src="../Image/green_door.png" /></a>   </div>  </body>
    View Code

                                               

                 内联样式:

                               <p style="color: red; margin-left: 20px">
                                        This is a paragraph
                               </p>

    HTML 链接: 

              <a href="http://www.w3school.com.cn/" target="_blank">Visit W3School!</a>    

    HTML 图像

               <p>
                    来自 W3School.com.cn 的图像:
                  <img src="http://www.w3school.com.cn/i/w3school_logo_white.gif" />
                </p>

       

  • 相关阅读:
    easyui的dataGrid生成的日期时间,总是不能很好的兼容ie8和谷歌,终于摸索出一个合适的办法
    DELPHI使用TClientDataSet时不携带MIDAS.DLL的方法
    你又重新年轻了一次,这一次你打算怎么活?
    c#网站项目的发布:项目方式、webSite网站模式(未能获得项目引用XXX的依赖项的解决)
    当取不到raisError的错误信息只能取到return的错误代码时,可以取connection.errors[0].description
    layer iframe大致使用
    全选
    下拉选
    checkbox
    js判断值对否为空
  • 原文地址:https://www.cnblogs.com/yujian-bcq/p/html.html
Copyright © 2011-2022 走看看