⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 css_text.asp@output=print

📁 W3Schools tutorial..web designing
💻 ASP@OUTPUT=PRINT
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>CSS Text Properties</title>
 
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>

</head>
<body>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

<h1>CSS Text</h1>
<a href="css_background.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
 <a href="css_font.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />

<p class="intro">The CSS text properties define the appearance of text.</p>
<hr />

<h2>Examples</h2>

<p><a target="_blank" href="tryit.asp@filename=trycss_color">Set the color of the text</a><br />
This example demonstrates how to set the color of the text.</p>

<p><a target="_blank" href="tryit.asp@filename=trycss_text_background">Set the background-color of the text</a><br />
This example demonstrates how to set the background-color of a part of the text.</p>

<p><a target="_blank" href="tryit.asp@filename=trycss_letter-spacing">Specify the space between
characters</a><br />
This example demonstrates how to increase or decrease the space between
characters.</p>

<p><a target="_blank" href="tryit.asp@filename=trycss_line-height">Specify the space between lines</a><br />
This example demonstrates how to specify the space between the lines in a paragraph.</p>

<p><a target="_blank" href="tryit.asp@filename=trycss_text-align">Align the text</a><br />
This example demonstrates how to align the text.</p>

<p><a target="_blank" href="tryit.asp@filename=trycss_text-decoration">Decorate the text</a><br />
This example demonstrates how to add decoration to text.</p>

<p><a target="_blank" href="tryit.asp@filename=trycss_text-indent">Indent text</a><br />
This example demonstrates how to indent the first line of a paragraph.</p>

<p><a target="_blank" href="tryit.asp@filename=trycss_text-transform">Control the letters in a
text</a><br />
This example demonstrates how to control the letters in a text.</p>
<p><a target="_blank" href="tryit.asp@filename=trycss_text_direction">Set the 
text direction of an element</a><br />
This example demonstrates how to change the text direction of an element.</p>
<p><a target="_blank" href="tryit.asp@filename=trycss_text_word-spacing">
Increase the white space between words</a><br />
This example demonstrates how to increase the white space between words in a 
paragraph.</p>
<p><a target="_blank" href="tryit.asp@filename=trycss_text_white-space">Disable 
text wrapping inside an element</a><br />
This example demonstrates how to disable text wrapping inside an element.</p>

<hr />

<h2>CSS Text Properties</h2>
<p>The CSS text properties allow you to control the appearance of text.
It is possible to change the color of a text, increase or decrease the space between
characters in a text, align a text,
decorate a text, indent the first line in a text, and more.</p>

<p>
<b>Browser support:</b> IE: Internet Explorer, F: Firefox, N: Netscape.</p>
<p>
<b>W3C:</b> The number in the &quot;W3C&quot; column indicates in which CSS recommendation 
the property is defined (CSS1 or CSS2).</p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
  <tr>
    <th width="25%" align="left">Property</th>
    <th width="30%" align="left">Description</th>
    <th width="25%" align="left">Values</th>
    <th width="5%" align="left">IE</th>
    <th width="4%" align="left">F</th>
    <th width="4%" align="left">N</th>
    <th width="7%" align="left">W3C</th>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_color.asp">color</a></td>
    <td valign="top">Sets the color of a text</td>
    <td valign="top"><i>color</i></td>
    <td valign="top">3</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_direction.asp">direction</a></td>
    <td valign="top">Sets the text direction</td>
    <td valign="top">ltr<br />
      rtl</td>
    <td valign="top">6</td>
    <td valign="top">1</td>
    <td valign="top">6</td>
    <td valign="top">2</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_dim_line-height.asp">line-height</a></td>
    <td valign="top">Sets the distance between lines</td>
    <td valign="top">normal<br />
      <i>number<br />
      length<br />
      %</i></td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_letter-spacing.asp">letter-spacing</a></td>
    <td valign="top">Increase or decrease the space between characters</td>
    <td valign="top">normal<br />
      <i>length</i></td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">6</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_text-align.asp">text-align</a></td>
    <td valign="top">Aligns the text in an element</td>
    <td valign="top">left<br />
      right<br />
      center<br />
      justify</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_text-decoration.asp">text-decoration</a></td>
    <td valign="top">Adds decoration to text</td>
    <td valign="top">none<br />
      underline<br />
      overline<br />
      line-through<br />
      blink</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_text-indent.asp">text-indent</a></td>
    <td valign="top">Indents the first line of text in an element</td>
    <td valign="top"><i>length<br />
      %</i></td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top">text-shadow</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">none<br />
      <i>color</i><br />
      <i>length</i></td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_text-transform.asp">text-transform</a></td>
    <td valign="top">Controls the letters in an element</td>
    <td valign="top">none<br />
      capitalize<br />
      uppercase<br />
      lowercase</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top">unicode-bidi</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">normal<br />
      embed<br />
      bidi-override</td>
    <td valign="top">5</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">&nbsp;</td>
    <td valign="top">2</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_white-space.asp">white-space</a></td>
    <td valign="top">Sets how white space inside an element is handled</td>
    <td valign="top">normal<br />
      pre<br />
      nowrap</td>
    <td valign="top">5</td>
    <td valign="top">1</td>
    <td valign="top">4</td>
    <td valign="top">1</td>
  </tr>
  <tr>
    <td valign="top"><a href="pr_text_word-spacing.asp">word-spacing</a></td>
    <td valign="top">Increase or decrease the space between words</td>
    <td valign="top">normal<br />
      <i>length</i></td>
    <td valign="top">6</td>
    <td valign="top">1</td>
    <td valign="top">6</td>
    <td valign="top">1</td>
  </tr>
</table>

<br />
<hr />
<a href="css_background.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
 <a href="css_font.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>

<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -