html5 消除表格线

html-css016

html5 消除表格线,第1张

html中去掉表格边框线

border="0"可以去除边框以下是关于border的一些相关资料:定义和用法border 属性在一个声明中设置所有边框属性。语法:Object.style.border=borderWidth borderStyle borderColorborderWidth设置边框的宽度。thinmediumthicklengthborderStyle设置边框的样式。nonehiddendotteddashedsoliddoublegrooveridgeinsetoutsetborderColor设置边框的颜色。color-namecolor-rgbcolor-hextransparent实例本例改变元素的边框:<html><head><style type="text/css">p{ border: thin dotted #FF0000}</style><script type="text/javascript">function changeBorder(){document.getElementById("p1").style.border="thick solid #0000FF"}</script></head><body><input type="button" onclick="changeBorder()"value="Change border" /><p id="p1">This is a paragraph</p></body></html>

html5使超链接特效消失的办法如下

1.新建一个html文件,命名为test.html,用于讲解html5超链接下划线怎么去掉。

2.在test.html文件内,使用a标签创建一个链接,下面将使用css去掉该超链接的下划线。

3.在test.html文件内,给a标签添加一个class属性,属性值为ttlink。

4.在test.html文件内,编写标签,页面的css样式将写在该标签内。

在css标签内,通过class该超链接的样式,将text-decoration属性设置为none,实现去掉链接的下划线。

clearRect函数

context.clearRect(0,0,300,300)

第一个参数:x的起始位置

第二个参数:y的起始位置

第三个参数:清除的宽度

第四个参数:清除的高度