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

📄 quality_styles.asp

📁 W3Schools tutorial..web designing
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!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>Web Quality Assurance StyleSheets</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" />

<link rel="stylesheet" type="text/css" href="../stdtheme.css" />

<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>

<a name="top"></a>
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#808080">
<tr>
<td width="234" valign="top">
<a href="../default.htm"><img src="../images/w3default80.jpg" border="0" alt="W3Schools" /></a>
</td>
<th valign="middle" align="left" class="right">
<iframe style="background-color:#808080" src="../banners/bannerframe.asp@adpartner=aspall2" height="90" width="728"
marginwidth="0" marginheight="0" frameborder="0" scrolling="no">
Your browser does not support inline frames or is currently configured not to display inline frames.
</iframe>

<br /></th>
</tr>
</table>

<table style="margin-left:1px" width="800px" border="0" cellpadding="0" cellspacing="2">
<tr>
<td width="137" class="content" valign="top"><br />
<a class="left" href="../default.asp" target="_top">
<img src="../images/homeicon.gif" border="0" alt="home" /></a>
<a class="left" href="../default.asp" target="_top">
<b>HOME</b></a>
<br /><br />
<b>Web Quality</b><br />
<a class="left" target="_top" href="default.asp" >Quality HOME</a><br />
<a class="left" target="_top" href="quality_standards.asp" >Web Standards</a><br />
<a class="left" target="_top" href="quality_elements.asp" >HTML Elements</a><br />
<a class="left" target="_top" href="quality_styles.asp" style='font-weight:bold;'>Style Sheets</a><br />
<a class="left" target="_top" href="quality_readability.asp" >Readability</a><br />
<a class="left" target="_top" href="quality_accessibility.asp" >Accessibility</a><br />
<a class="left" target="_top" href="quality_international.asp" >Internationalization</a><br />

<br />
<b>Selected Reading</b><br />
<a class="left" target="_top" href="../browsers/browsers_stats.asp">Web Statistics</a><br />
<a class="left" target="_top" href="../site/site_glossary.asp">Web Glossary</a><br />
<a class="left" target="_top" href="../hosting/default.asp">Web Hosting</a><br />
<a class="left" target="_top" href="default.asp">Web Quality</a><br /><br />
<a class="left" target="_top" href="../forum/default.asp">W3Schools Forum</a><br /><br />
<a class="left" target="_top" href="../about/about_helping.asp">Helping W3Schools</a><br /><br />
<script type="text/javascript"><!--
google_ad_client = "pub-3440800076797949";
/*LeftLinkUnit*/
google_ad_slot = "4854527104";
google_ad_width = 120;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="../../pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
<td valign="top">
<table style="border: 1px solid gray" width="100%" bgcolor="#FFFFFF" border="0" cellpadding="5" cellspacing="0">
<tr>
<td>


<h1>Web Quality - Style Sheets</h1>

<a href="quality_elements.asp"><img alt="previous" border="0" src="../images/btn_previous.gif" /></a>
<a href="quality_readability.asp"><img alt="next" border="0" src="../images/btn_next.gif" width="100" height="20" /></a>

<hr />

<p class="intro">Using Style Sheets is important to web page quality.</p>

<hr />

<h2>Don't Use the Font Tag</h2>
<p>The text size used to display information on a web page should be set using 
CSS (Cascading Style Sheets). Do not use the HTML &lt;font&gt; tag.</p>
<p>Using the &lt;font&gt; tag will increase the size of your document, and give you a 
nightmare every time you decide to change your standard text size.</p>
<p>Think of the following example:</p>
<p>One day you decide to change all the headers in your web to another color and 
another size. With CSS you can change the color and size attributes by rewriting 
one line of code. If you have used the &lt;font&gt; tag, you will have to edit the 
&lt;font&gt; tag for all the headers in all the pages of your web.</p>

<p><img border="0" src="../images/lamp.gif" alt="lamp.gif" /> Using styles instead of &lt;font&gt; tags makes it much easier to give all the 
pages of your web a high quality and consistent look.</p>

<hr />

<h2>Don't Use Fixed Sizes</h2>

<p>Never use fixed size values. Always use relative size values.</p>

<p>The most important reason for this advice is that fixed sizes can not be 
resized by the browser.</p>

<p>Your visitors will have different equipment (monitors), different viewing 
conditions (light), and possible disabilities (poor eyesight).</p>

<p>Setting your default text size to 100% (or medium), your main headers to 140% 
(or x-large), your sub headers to 120% (or large), as an example, will make it 
possible for your reader to resize your pages to their best fit.</p>

<p>Want to see how it works? Select view in your browsers menu, and change the 
text size for this page.</p>

<p><img border="0" src="../images/lamp.gif" alt="lamp.gif" /> Adjusting the text size of a web 
page also changes the amount of text that will fit on a printed page.</p>

<hr />

<h2>Don't Use a Small Default Font Size</h2>

<p>Some web sites use a small text size just to &quot;squeeze&quot; more text into each 
page, or to make the page more &quot;stylish&quot;.</p>
<p>Again, visitors with different equipment, viewing conditions, and 
disabilities (and sometimes most people) will have difficulties reading the 
text.</p>

<p><img border="0" src="../images/lamp.gif" alt="lamp.gif" /> Don't force your 
visitors to enlarge the text size every time they visit your site.</p>

<hr />

<h2>Always Use a Background Color</h2>
<p>Most web pages use colors for different text elements. Both headers and links 
are often in a different color from the body text.</p>
<p>As a web designer, you should be aware of the fact that your visitors are 
able to change their default color preferences. </p>
<p>If you define colors for your web elements (like header and links), you 
should also define the background color.</p>
<p>If you don't define a background color, your web site might end up with some 
very bad combination of colors (like light red headers on a red background, or 
even worse, black text on a black background)</p>

<p><img border="0" src="../images/lamp.gif" alt="lamp.gif" /> If you don't specify a background 
color, your text might be invisible.</p>

<hr />
<a href="quality_elements.asp"><img alt="previous" border="0" src="../images/btn_previous.gif" width="100" height="20" /></a>
<a href="quality_readability.asp"><img alt="next" border="0" src="../images/btn_next.gif" width="100" height="20" /></a>

⌨️ 快捷键说明

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