分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 前端开发

HTML #模态对话框 (未完成版本)

发布时间:2023-09-06 01:07责任编辑:顾先生关键词:HTML

###

<!DOCTYPE html><html lang="en"><head> ???<meta charset="UTF-8"> ???<title>Title</title> ???<style> ???????.c1{ ???????????background-color: gray; ???????????position: fixed; ???????????top: 0; ???????????left: 0; ???????????right: 0; ???????????bottom: 0; ???????????opacity: 1; ???????} ???????.c2{ ???????????background-color: white; ???????????position: fixed; ???????????top: 50%; ???????????left: 50%; ???????????height: 300px; ???????????width: 626px; ???????????margin-top: -150px; ???????????margin-left: -400px; ???????} ???????.c3{ ???????????color: #000; ???????} ???????.hide{ ???????????display: none; ???????} ???</style></head><body> ???<input id="i1" type="button" value="添加"> ???<table border="1px"> ???????<thead> ???????????<tr> ???????????????<th>主机名</th> ???????????????<th>IP</th> ???????????????<th>端口</th> ???????????????<th>配置</th> ???????????</tr> ???????</thead> ???????<tbody> ???????????<tr> ???????????????<td>localhost</td> ???????????????<td>1.1.1.1</td> ???????????????<td>8080</td> ???????????????<td><input class="c3" type="button" value="编辑"><input type="button" value="删除"></td> ???????????</tr> ???????????<tr> ???????????????<td>localhost</td> ???????????????<td>1.1.1.2</td> ???????????????<td>3306</td> ???????????????<td><input class="c3" type="button" value="编辑"><input type="button" value="删除"></td> ???????????</tr> ???????????<tr> ???????????????<td>localhost</td> ???????????????<td>1.1.1.3</td> ???????????????<td>80</td> ???????????????<td><input class="c3" type="button" value="编辑"><input type="button" value="删除"></td> ???????????</tr> ???????</tbody> ???????<div id="i2" class="c1 hide">123</div> ???????<div id="i3" class="c2 hide"> ???????????<div id="i4"> ???????????????<input type="text" name="hostname" /> ???????????????<input type="text" name="ipaddr" /> ???????????????<input type="text" name="port"/> ???????????</div> ???????????<input type="button" value="取消"> ???????????<input type="button" value="确定"> ???????</div> ???</table> ???<script src="jquery-3.2.1.js"></script> ???<script> ???????$(‘#i1‘).click(function () { ???????????$(‘#i2,#i3‘).removeClass(‘hide‘); ???????}); ???????$("input[value=‘取消‘]").click(function () { ???????????$(‘#i2,#i3‘).addClass(‘hide‘); ???????????}); ???????$(‘.c3‘).click(function () { ???????????var h = $(‘#i2,#i3‘).removeClass(‘hide‘); ???????????t = $(‘tbody‘).children().children(); ???????}) ???</script></body></html>

  

###

HTML #模态对话框 (未完成版本)

原文地址:http://www.cnblogs.com/lwsup/p/7449843.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved