小编Vex*_*tus的帖子

Firefox 1像素错误与边界崩溃,解决方法?

以下"左侧1个像素"错误是否有任何解决方法?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">                                   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">   
<body>
<div style="padding: 50px">
<div style="border: 1px solid red">Table header info</div>
<table style="border: 1px solid green; border-collapse: collapse; width: 100%">
    <tbody>
        <tr>
            <th>Col1</th>
            <th>Col2</th>
        </tr>
        <tr>
            <td>Hello</td>
            <td>World</td>
        </tr>
    </tbody>
</table>
<div style="border: 1px solid red">Table footer info</div>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

它看起来像这样:

Firefox CSS bug http://i42.tinypic.com/245x9ud.png

这有什么纯CSS解决方案吗?


编辑

我对我的桌子有点不清楚,所以这里又是:

边界崩溃:

Firefox CSS bug http://i42.tinypic.com/245x9ud.png

使用cellspacing ="0"并且没有建议的边框折叠:

Firefox CSS bug http://i44.tinypic.com/2rg0qxi.png

所以现在我桌子里的边框加倍了,但是我希望桌子上有1px的边框.

当我从表中删除1px边框时,我以:

Firefox CSS bug http://i40.tinypic.com/2vbokmq.png …

css firefox rendering border

36
推荐指数
4
解决办法
4万
查看次数

如何在zend框架视图中使用$ this - > _()?

在我的ZF 1.11应用程序中,我将我的翻译器存储在注册表中,如下所示:

Zend_Registry::set('Zend_Translate', $translator);
Run Code Online (Sandbox Code Playgroud)

所以在我的视图脚本中,我可以这样访问翻译器:

$this->translate('abc');
Run Code Online (Sandbox Code Playgroud)

是否有任何聪明的方法可以使用此调用:

$this->_('abc');
Run Code Online (Sandbox Code Playgroud)

使用$ this-> translate会使视图变得混乱,而且很多人习惯于看到_().

php model-view-controller translation zend-framework

3
推荐指数
2
解决办法
3555
查看次数