style: 样式信息

2017-06-06 17:37:00
admin
原创
473
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
 <link rel="stylesheet" href="default.css" type="text/css">
 <link rel="alternate stylesheet" media="screen" title="蓝色" href="src/blue.css" type="text/css">
 <link rel="alternate stylesheet" media="screen" title="粗体" href="src/flat.css" type="text/css">
 <link rel="stylesheet" href="default.css" type="text/css">
 <title>元素style</title>
 <style type="text/css">
 p.test{font-size:18px}
 </style>
 </head>
 <body>
 <p class="test" style="font-weight:nomal">The cascading mechanism is used when a number of style rules all apply directly to an element. The mechanism allows the user agent to sort the rules by specificity, to determine which rule to apply. If no rule can be found, the next step depends on whether the style property can be inherited or not. Not all properties can be inherited. For these properties the style sheet language provides default values for use when there are no explicit rules for a particular element.</p>
 此页面提供了可选样式,可在新版本的浏览器中选择不同的页面风格,例如:<br>
 对于IE 8.0,选择菜单“查看-样式”,本例有蓝色粗体两种。<br>
 对于FireFox,选择菜单“查看-页面风格”。<br>
 </body>
 </html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络