style="display:none"隐藏html的标签
隐藏html的标签
<div class="span11 alignment"> <h1>我的虚拟网络</h1> </div> </br> <ul class="nav nav-tabs vmcs-tab"> <li<%= raw ' class="active"' if controller.action_name == 'index' %>> <%= link_to '虚拟网络列表', action: :index %> </li> <li> <%= link_to '虚拟网络拓扑', action: :openvpn_topo%> <ul class="nav nav-tabs vmcs-tab" <%= raw 'style="display:none"' if not controller.action_name == 'openvpn_topo' and not controller.action_name == 'vlan_topo' %>> <li<%= raw ' class="active"' if controller.action_name == 'openvpn_topo' %>> <%= link_to 'openvpn拓扑', action: :openvpn_topo%> </li> <li<%= raw ' class="active"' if controller.action_name == 'vlan_topo' %>> <%= link_to 'vlan拓扑', action: :vlan_topo%> </li> </ul> </li> </ul>
收获不会与付出成反比
by juandx