我创建了一个表,我希望它height是800px.
如果它溢出,我想制作滚动条,但标题不会滚动.
所以我尝试添加这个CSS:
overflow: scroll;
max-height:800px;
Run Code Online (Sandbox Code Playgroud)
但它对我不起作用.这是整个html文件.问题是什么?
CSS
table{
overflow: scroll;
text-align: center;
margin: auto;
max-height:800px;
}
table, td, th
{
border:1px solid green;
}
th
{
background-color:green;
color:white;
}
Run Code Online (Sandbox Code Playgroud)
和HTML
<table >
<tr>
<th>field a</th>
<th>field b</th>
<th>field c</th>
<th>field e</th>
</tr>
<tr>
<td>3534534</td>
<td>??"?</td>
<td>6,463</td>
<td>4,000</td>
</tr>
<tr>
<td>3534534</td>
<td>??"?</td>
<td>6,463</td>
<td>4,000</td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
谢谢!!!
我有一个主键'username'的表,它是'Char',我必须将其更改为varchar.有一种方法可以做到这一点而不会丢失数据?导致它的主键并级联所有其他表.
谢谢.
我有一个在 My SQL 中创建的数据库文件,我想在 My SQL WorkBench 6.1 中打开它们。我得到的文件包含:每个表的 FRM 、MYD 、MYI ,另一个文件调用 db.opt 。我怎样才能将其导入工作台?

谢谢。
我想在java中随机创建16位数字。我可以用 String 来做,然后转换为 Long。还有其他选择吗?
谢谢!
我想创建一个查询,从人员列表(人员)返回特定的人(通过ID).
public Person getThisID(int pID)
{
var res = from p in persons
where p.pID == pID
select p;
return res;
}
Run Code Online (Sandbox Code Playgroud)
但是我遇到了关于投射问题的错误.我试图投射res到人物,但它不适用于此.我该如何解决?
我希望当用户在我的网站中提交表单时获取客户端IP.我尝试使用该命令:Request.UserHostAddress
但我得到的不是ip: ::1
我该怎么办?
谢谢!
我尝试运行SQL查询以从SQL SERVER 2008中的数据库中删除特定记录.我正在使用此命令:
st.executeUpdate("delete from TblMachine Where TblUsers=35");
Run Code Online (Sandbox Code Playgroud)
和它的作品.但是我想要UserID(35)将是我的变量.我怎样才能做到这一点?
谢谢!!