首页 > 代码库 > 学习记录

学习记录

HTML标签 

1、<strong>

<strong> 标签和 <em> 标签一样,用于强调文本,但它强调的程度更强一些。


2、<font>

<font> 规定文本的字体、字体尺寸、字体颜色。

例如:

<font size="3" color="red">This is some text!</font>

<font size="2" color="blue">This is some text!</font>

<font face="verdana" color="green">This is some text!</font>


HTML属性

1、HTML <td> 标签的 valign 属性

带有不同垂直对齐单元格的表格:

实例:

 <tr>

    <td valign="top">January</td>

    <td valign="top">$100</td>

  </tr>


2、HTML <div> 标签的 align 属性

文档中的一个部分居中对齐:

实例

<div align="center">

  This is some text!

</div>


3、CSS,height:auto和height:100%有什么区别

auto是自动默认高度

height:100%的话如果搜索你父级有height的话就是父级的高度


4、HTML <table> 标签的 cellspacing 属性

实例

下面的例子把表格单元格间距设置为 10 像素:

<table border="8" cellspacing="10">

  <tr>

    <th>Month</th>

    <th>Savings</th>

  </tr>

  <tr>

    <td>January</td>

    <td>$100</td>

  </tr>

</table>


5、HTML <table> 标签的 cellpadding 属性

实例

下面的例子把表格单元边界与单元内容之间的间距设置为 10 像素:

<table border="8" cellpadding="10">

  <tr>

    <th>Month</th>

    <th>Savings</th>

  </tr>

  <tr>

    <td>January</td>

    <td>$100</td>

  </tr>

</table>



VS调试设置端口

1、项目属性“Web"选项卡,指定特定端口


学习记录