div 弹框

本文详细介绍了如何使用HTML和CSS创建弹框,并展示了如何通过表格布局实现数据展示,包括使用不同样式区分行以及条件渲染单元格内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<link href="style/usagePercent.css" rel="stylesheet" type="text/css" />
<link href="style/searchResult.css" rel="stylesheet" type="text/css" />
<link href="style/searchDialog.css" rel="stylesheet" type="text/css" />


<!-- 链接 一个a标签 href 属性等于 div弹框的ID class属性等于样式   rev     --> 
 <a href="#searchDialog" class="nyroModal btnBlue" rev="modal">弹框</a>
 
 <!-- div id属性 等于a标签的href -->
 <div id="searchDialog" class="dialog-bg" style="width: 900px;">
			<div class="dialog-content">
			<h4 class="dialog-tt"><span></span><a href="#" class="nyroModalClose btn-close" id="closeBut" title="Close"></a></h4>				
			 <!-- id 表示在哪显示 -->
			<div id="browse" class="list" style="width:99%;margin-top: 15px;">
	        <table cellspacing="0" width="100%"> 
                <thead>
	                <tr>
	                	<th scope="col" width="20%;" class="listLeftLine" >111</th>
                    	<th scope="col" width="20%;" align="center" >222</th>
                    	<th scope="col" width="20%;" align="center" >333</th>
                    	<th scope="col" width="20%;" align="center" >444</th>
                    	<th scope="col" width="20%;" class="listRightLine" >555</th>
                    </tr>
                </thead>
                <tbody>
                    <s:iterator value="数据List" status="rowstatus">
						<tr <s:if test="#rowstatus.even == true">class="even"</s:if><s:else>class=""</s:else>  style="cursor:default;">
								<td align="center">
								    111的内容
				                </td>
				                <td align="center">
				                	<s:if test="222的值 == 0">
				                	222内容</s:if>
		                    		<s:else>222的内容</s:else>
				                </td>
				                <td align="center">
				                	333内容
				                </td>
				                <td align="center">
				                	444内容
				                </td>
				                 <td align="center" class="listRightLine">
				                	555内容
				                </td>
				         </tr>       
				    </s:iterator>
				</tbody>            
               </table>
	        </div>
			<div class="btn-group">
				关闭链接
				<a class="dialog-btn nyroModalClose" href="#">关闭</a>
			</div>
		</div>
	</div>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值