zoukankan      html  css  js  c++  java
  • 格式与布局

    <!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>
    <style type="text/css">
    * /*针对所有标签起作用*/
    {
    margin:0px;/*去除所有边距*/
    padding:0px;}/*去除所有间距*/
    </style>
    </head>

    <body>
    <div style="border:2px solid red; 400px; height:200px;">c<div style="100px; height:100px; border:5px solid blue; margin:10px; right:0px; bottom:0px; position:absolute">你好啊!</div></div>
    <div style="border:2px solid red; 400px; height:200px; position:absolute">d<div style="100px; height:100px; border:5px solid blue; margin:10px; right:0px; bottom:0px; position:absolute">你好吗?</div></div>
    <div style="100px; height:100px; border:5px solid blue; margin:10px; right:0px; bottom:0px; position:fixed;">你好</div>

    </body>
    </html>

  • 相关阅读:
    adjacent_diffenerce
    数值算法速食食谱
    accumulate
    平面分割
    进制转换
    奖学金
    谁考了第k名
    奇数单增序列
    病人排序
    灯的开关状态
  • 原文地址:https://www.cnblogs.com/zyg316/p/5517800.html
Copyright © 2011-2022 走看看