半点优化网 http://www.bdxc.net/
当前位置首页 > 网站技术问题> 正文

关于直接输入表格后出现了很多<BR>代码的问题

2022-10-12 05:53:57 暂无评论 179 网站技术问题 表格   网页   问题

先把复制的部分粘贴到记事本里,替换掉<br>再复制到编辑器

网页代码的问题:鼠标经过表格时改变表格背景图像或颜色

有,直接用css:
#name{
background-color:#000;
width:50px;
height:50px;
}
#name:hover{
background-color:#fff;
width:50px;
height:50px;
}
----------------------把以上代码写到css中
下面的就是html的了
<div
id=name></div>
把background-color换成img也行
希望对你有帮助

网页设计表格问题

你插入了框架吗,主框架是什么意思,“怎么在表格里打代码”是什么意思,你可以在表格里输代码啊

网页表格问题.

<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
>
<html>
<head>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<title>无标题文档</title>
</head>


<body>
<table width=500 height=0 border=1 style=table-layout:fixed>
  <tr>
    <td>&nbsp;</td>
    <td>
</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>


增加 style=table-layout:fixed固定表格试试

猜你喜欢

随机文章


    Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/bdxc.net/e/class/connect.php) is not within the allowed path(s): (/www/wwwroot/www.bdxc.net/:/tmp/) in /www/wwwroot/www.bdxc.net/1.php on line 4

    Warning: require(/www/wwwroot/bdxc.net/e/class/connect.php): failed to open stream: Operation not permitted in /www/wwwroot/www.bdxc.net/1.php on line 4

    Fatal error: require(): Failed opening required '/www/wwwroot/bdxc.net/e/class/connect.php' (include_path='.:/www/server/php/56/lib/php') in /www/wwwroot/www.bdxc.net/1.php on line 4