小编dvl*_*vln的帖子

使用javascript/jquery事件关闭浏览器选项卡

我有一个注销按钮,如果用户点击,则需要关闭浏览器选项卡.我尝试过以下方法

window.close(); 
Run Code Online (Sandbox Code Playgroud)

但它不适用于任何浏览器.

谢谢

jquery javascript-events

5
推荐指数
1
解决办法
9112
查看次数

表的边界不在IE中工作

我有datagrid表,应用了一些样式.一切都工作正常Chrome和Firefox但边框不适用于IE中的表格.当我将相同的样式应用于table tbody td时会看到边框.在以下样式中,border-left在IE中不起作用.

.datagrid table thead th {
color: #4180ab;
font-size: 12px;
font-weight: bold;
line-height: 30px;
text-align: center;
border-left: 1px solid #a8cbd1;
background: #f1f6fa;
}
Run Code Online (Sandbox Code Playgroud)

// HTML标记

<table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
<thead class="thead">
    <tr>
        <th>No</th>
        <th>Application Number</th>
        <th>Given Name</th>
        <th>Family Name</th>
        <th>Nationality</th>
        <th>Passport Number</th>
        <th>Visa Type</th>
        <th>Transaction Type</th>
        <th>Submission Date</th>
    </tr>
</thead>
<tbody>
    <tr class="gradeX">
        <td>1</td>
        <td>APP1212</td>
        <td>Steven</td>
        <td class="center">Gerrard</td>
        <td class="center">British</td>
        <td>12121212</td>
        <td>Tourist Visa</td>
        <td>454584545</td>
        <td>20-01-2014<img src="images/lock.png" alt="" class="lock"></td>
    </tr>
    <tr class="gradeC">
        <td>2</td>
        <td>APP1012</td>
        <td>Fernando</td>
        <td class="center">Torres</td> …
Run Code Online (Sandbox Code Playgroud)

html css internet-explorer html-table

5
推荐指数
1
解决办法
1477
查看次数