开发者

XLS formatting with basic table?

开发者 https://www.devze.com 2023-01-11 12:38 出处:网络
I\'m trying to create a simple report on an intranet site. Based on this answer, I t开发者_JAVA百科hink I want to just go with a simple HTML table syntax. In that post, Joel Coehoorn says that there a

I'm trying to create a simple report on an intranet site. Based on this answer, I t开发者_JAVA百科hink I want to just go with a simple HTML table syntax. In that post, Joel Coehoorn says that there are some limited formatting options you can perform. Is it possible to add borders to the cells, and if so, how? My google-fu has failed to provide any results, likely because most people want a little more power at the price of simplicity. I just need simplicity.

Thanks


Based on the info in this post it looks like you can use css:

<html>
    <head>
        <style type="text/css">
            td{
                border: thin black solid;
            }
        </style>
    </head>
    <body>
        <table>
            <tr>
                <td>Hi</td>
                <td>3</td>
                <td>=sum(b1*2)</td>
            </tr>
            <tr>
                <td>Now this is some long text</td>
                <td>3</td>
                <td>=sum(b1*b2)</td>
            </tr>
        </table>
    </body>
</html>
0

精彩评论

暂无评论...
验证码 换一张
取 消