html随笔记录

编程技术 2019-12-05 161 次浏览

html速成记录



<base>继承于a,位于head,全局属性,所有a的href都将被直接跳转<base><bdo>ltr|rtl=>bdo dir="rtl"  //left to right|right t left<斜粗大小> i|b|big|small<q><blockquote> cite="引用源"<button>按钮<!-- if[ie8]> get it <!-[endif]--><a style="text-decoration:none"> //没下划线链接外部链接css样式表<link href>内联样式表<p style=''>锚文本.<a href="#top"> //where id表格

table tr td,border=1//实框, //空格占格符否则空白不显示,caption定义表格的标题,th为加粗,跨行则在th后加colspan='行数'.跨列则为rowspan='列数'.加颜色在table里属性bgcolor或th|td里.可搭配align来整齐排列.frame写在table里=>box,above,below,hsides,vsides.

12.列表



有序  <ol start="20">从20开始  //可无序套有序无序  <ul>定义列表 头dl 身dt 尾dd

13.html类

.one{background-color:red;color:blue;margin:20px;padding:20px;

}<div class="one">  //margin是用来设定该元素与相邻元素直接的距离(为三个值)。 //padding:2cm 4cm 3cm 4cm;内边距

14.frame框架里<frameset cols|rows="25%,25%,25%">cols为垂直|rows为水平

noresize(在frame标签内)不可改变大小frameset不可出现在body内 但noframes可嵌套在body内外

15.导航框架

<frameset cols="120,*">

  <frame src="/example/html/html_contents.html">  <frame src="/example/html/frame_a.html" name="showframe">

</frameset>

16.内联框架

指<body><iframe></iframe></body>

赞 (2)
本文由 Aatrox 创作,采用 知识共享署名 3.0,可自由转载、引用,但需署名作者且注明文章出处。

还不快抢沙发

添加新评论