码迷,mamicode.com
首页 > Web开发 > 详细

网页基础1

时间:2017-04-25 10:04:58      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:color   大小   大于号   链接   doctype   支持   ble   背景图片   完整   

<!DOCTYPE HTML>

<html>

 

<head>

<title>我是标题哦</title>网页标题

</head>

 

<body style="

/*

<STYLE TYPE="text/css">
<!-- 
BODY {background-image: URL(图片名称.gif); 
background-position: center; 
background-repeat: no-repeat; 
background-attachment: fixed;} 
--> 
</STYLE>

 

关于网页背景图代码的释义:
background-image:url(图片地址) ; 这个是定义背景图片
background-repeat: no-repeat; 这个是定义背景图片不重复
background-position: center; 这个是定义背景居中
background-attachment: fixed; 定义背景图片的滚动

 

*/

<hr>下滑分割线

 <abbr title="etcetera">etc.</abbr><!-- 缩写,让鼠标移到etc上显示出来完整的 -->

<a href="">.....</a>超链接
<p style="color:red"颜色>     <br>换行     </p>段落(空格打再多也只显示一个)
 
<pre> </pre>可以保留两个空格与换行
 
<h1 style="font-family:verdana">粗体</h1>标题
 <p style="font-family:courier">楷书</p>
<p><b>这是加粗</b></p>
//<p><strong>这是加粗</strong></p>
<p><i>这是斜体</i></p>
//<p><em>这是斜体</em></p>
<p>字体变<small>小</small>添加<mark>标记</mark><del>已删除</del>标注<ins>下滑</ins>标记<sub>下浮</sub>文本。标记<sup>上浮</sup>文本</p>
<p style="font-size:160%">文字大小</p>
<h2 style="text-align:center">左右居中</h2>
<img
src=""源文件
图片不可读时显示用
width=""
height=""
>
 
 
 
显示结果描述实体名称实体编号
  空格 &nbsp; &#160;
< 小于号 &lt; &#60;
> 大于号 &gt; &#62;
& 和号 &amp; &#38;
" 引号 &quot; &#34;
撇号  &apos; (IE不支持) &#39;
&cent; &#162;
£ &pound; &#163;
¥ 日元 &yen; &#165;
欧元 &euro; &#8364;
§ 小节 &sect; &#167;
© 版权 &copy; &#169;
® 注册商标 &reg; &#174;
商标 &trade; &#8482;
× 乘号 &times; &#215;
÷ 除号 &divide; &#247;
 
 
</body>
</html>

网页基础1

标签:color   大小   大于号   链接   doctype   支持   ble   背景图片   完整   

原文地址:http://www.cnblogs.com/tiredxin/p/6760175.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!