回 帖 发 新 帖 刷新版面

主题:关于在html中写代码(会的来帮帮)

<DIV class="sec_menu" id="menu1" style="WIDTH: 158px">
                                        <table cellpadding="0" cellspacing="0" align="center" width="135">
                                            <tr>
                                                <td height="20">
                                                    <a href="WebForm4.aspx">用户管理</a></td>
                                            </tr>
                                            <tr>
                                                <td height="20">
                                                    <a href="book.aspx">查看书籍</a></td>
                                            </tr>
                                            <tr>
                                                <td height="20">
                                                    <a href="book.aspx">添加书籍</a></td>
                                            </tr>
                                        </table>
                                    </DIV>

在html这段代码中。如果我想让传过来的值Fla等于1的就隐藏添加书籍这一行要如何实现。以前老师教过。忘了~~~<%?????????%>

回复列表 (共2个回复)

沙发

主要是格式不太记得了。。。高手讲讲。

板凳

<DIV class="sec_menu" id="menu1" style="WIDTH: 158px">
                                        <table cellpadding="0" cellspacing="0" align="center" width="135">
                                            <tr>
                                                <td height="20">
                                                    <a href="WebForm4.aspx">用户管理</a></td>
                                            </tr>
                                            <tr>
                                                <td height="20">
                                                    <a href="book.aspx">查看书籍</a></td>
                                            </tr>
                                            <% if(fla!=1){ %>
                                            <tr>
                                                <td height="20">
                                                    <a href="book.aspx">添加书籍</a></td>
                                            </tr>
                                            <% } %>
                                        </table>
                                    </DIV>

我来回复

您尚未登录,请登录后再回复。点此登录或注册