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>

  • 相关阅读:
    左偏树
    “今日头条杯”首届湖北省大学程序设计竞赛现场赛
    最短路
    BP神经网络算法改进
    图论学习路线
    差分演化算法
    51Nod 1413 权势二进制
    51Nod 1315 合法整数集
    Treap(树堆)
    今日头条杯2018湖北省大学生程序设计竞赛(网络赛)
  • 原文地址:https://www.cnblogs.com/bhmmlxieliming/p/6517008.html
Copyright © 2011-2022 走看看