<!--
.tableborder {
border-top-width: 1px
border-right-width: 1px
border-bottom-width: 1px
border-left-width: 1px
/*以上分别设置的是表格边框中上右下左的边框宽度*/
border-top-style: solid
border-right-style: solid
border-bottom-style: solid
border-left-style: solid
/*设置边框的表现样式,solid为实线*/
border-top-color: #0000FF
border-right-color: #0000FF
border-bottom-color: #0000FF
border-left-color: #0000FF
/*设置边框的颜色*/
}
-->
</style>
<table width="300" height="100" border="0" align="center" cellpadding="0" cellspacing="0" class="tableborder">
<tr>
<td>class="tableborder"是对样式的调用,写在table标签内</td>
<td> </td>
</tr>
</table>
用CSS可以使边框变圆方法:
工具/原料
Dreamweaver软件
电脑
方法/步骤
1、首先需要打开自己的DW软件,选择文件下面的新建,在弹出框中选择新建一个html页面。
2、进入到新建的html页面后,点击首先做的是将网页进行保存,这样才能在浏览器中进行预览,方便起见,我们保存到桌面上即可。
3、保存之后,我们再回到test.html页面中,敲入一些代码,使得网页可以呈现出一个个的小框。
4、按下键盘上的F12键盘,可以让网页在默认的浏览器中测试显示,可以看到一行的文字,
5、但是文字所在的边框之间并没有明显的间隔,接下来需要为文字之间添加间距。即使用margin-left,更改之后的页面如下图所示。
6、然后再次回到DW软件的编辑页面,在style样式中,添加一句:border-radius:5px
7、之后可以再次进入浏览器中,查看页面更改之后的效果图 。可以看到的,原来的方框已经有了明显的圆弧边框。
<li>的默认样式就带有实心点,或定义个样式;list-style-type : disc例子:
<html>
<head>
<style type="text/css">
ul.disc {list-style-type: disc}
ul.circle {list-style-type: circle}
ul.square {list-style-type: square}
ul.none {list-style-type: none}
</style>
</head>
<body>
<ul class="disc">
<li>咖啡</li>
<li>茶</li>
<li>可口可乐</li>
</ul>
<ul class="circle">
<li>咖啡</li>
<li>茶</li>
<li>可口可乐</li>
</ul>
<ul class="square">
<li>咖啡</li>
<li>茶</li>
<li>可口可乐</li>
</ul>
<ul class="none">
<li>咖啡</li>
<li>茶</li>
<li>可口可乐</li>
</ul>
</body>
</html>