zoukankan      html  css  js  c++  java
  • css文本格式详解

    一、css文本主体内容:

    二、css文本详解:

     1、文本缩进

      语法:

      text-indent:<length>|<percentage> 默认值为0.

      属性值详解:

      <length>:用长度值指定文本的缩进。可以为负值。

        <percentage>:用百分比指定文本的缩进。可以为负值。 

      <inherit>:继承父级text-indent属性值。

      用法:

      检索或设置对象中的文本的缩进。

      内联对象要使用该属性必须先使该对象表现为块级或内联块级。 对应的脚本特性为textIndent。

      兼容性:

      

      代码示例

      <!DOCTYPE html>
      <html>
        <head>
          <meta charset="utf-8">
          <title>菜鸟教程(runoob.com)</title>
          <style>
            p {text-indent:50px;}
          </style>
        </head>
        <body>

          <p>

            In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'

          </p>

       </body>
      </html>

        运行后的效果:

       

    2、

  • 相关阅读:
    amaze(妹子~) 好像挺好玩
    php 获取图片base64编码格式数据
    一些laravel博文
    微信移动端(wap)开发调试工具
    深入理解控制反转(IoC)和依赖注入(DI)
    使用 composer 下载更新卸载类库
    ionic ui 框架
    laravel 添加 404 页面
    laravel 调试模式及日志配置
    iOS-方法之+ initialize 与 +load
  • 原文地址:https://www.cnblogs.com/john-sr/p/5693354.html
Copyright © 2011-2022 走看看