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>
    p.test
    {
    11em;
    border:1px solid #000000;
    word-wrap:break-word;
    }
    </style>
    </head>

    <body style="font-size:24px; color:#60F;">
    这个是没有规定自动换行的
    <p style="11em; border:1px solid #000000;">This paragraph contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.</p>
    <br />
    <br />
    这个是规定了自动换行的
    <p class="test">This paragraph contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.</p>
    </body>
    </html>

    文字阴影效果:

    <!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>
    body
    {
    font-size:24px;
    color:#60F;
    }
    h1
    {
    text-shadow:5px 5px 5px red;}
    h2
    {
    text-shadow:10px 10px 5px yellow;}
    </style>
    </head>

    <body>
    <h1>文字特效!!!</h1>
    <h2>狂拽酷炫吊炸天</h2>

    </body>
    </html>

  • 相关阅读:
    MySQL行级锁和表级锁
    轮询、长轮询、长连接、socket连接、WebSocket
    Http请求的TCP连接
    TCP的三次握手和四次挥手
    面试:做过sql优化吗?
    Java线程池
    C#代码审查工具 StyleCop
    C#中图片切割,图片压缩,缩略图生成的代码
    一个对称加密、解密的方法C#工具类
    C# 音频操作系统项目总结
  • 原文地址:https://www.cnblogs.com/bhmmlxieliming/p/6517008.html
Copyright © 2011-2022 走看看