
HTML
l_degege
这个作者很懒,什么都没留下…
展开
-
css设置高度
html:<img src="/static/manager/home/img/zt.png" alt="" class="zt">css:.zt { width: 72px; height: 14px; position: absolute; left: 456px; bottom: 187px; opacity: 0....原创 2020-02-19 16:15:20 · 949 阅读 · 0 评论 -
html中下拉框使用
1、<select> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> <option value="opel">Opel</option> <option value="audi">...转载 2020-02-07 13:51:38 · 3518 阅读 · 0 评论 -
获取div中的内容写法
$(this).html() 获得被选中的div的里面的内容https://blog.youkuaiyun.com/qq_34787830/article/details/79776031转载 2019-12-25 16:13:34 · 424 阅读 · 0 评论 -
jquery中对input赋值
<input type="hidden" class="layui-input" id ="photo_src" />$("#photo_src").attr("value",res.src);注:https://blog.youkuaiyun.com/qq_40646143/article/details/79974025转载 2019-11-26 17:05:38 · 570 阅读 · 0 评论 -
html中图片显示、隐藏
$("#photo_img").show();$("#photo_img").hide();注:https://blog.youkuaiyun.com/a_sid/article/details/53485013二、jQuery显示隐藏div的几种方法https://blog.youkuaiyun.com/skh2015java/article/details/52790121...转载 2019-11-26 16:57:23 · 4920 阅读 · 0 评论 -
两个按钮间设置空格(间距)
<button id="search">查询</button><button id="add" style="margin-left:10px;">新增</button>注:https://ask.youkuaiyun.com/questions/199624转载 2019-10-24 14:36:28 · 32551 阅读 · 2 评论 -
combobox is not a function 问题解决
发现html页面引用了两个jquery解决方法:删掉其中一个注:https://blog.youkuaiyun.com/qq_34710612/article/details/82876673转载 2019-05-31 03:41:10 · 5385 阅读 · 0 评论 -
对../的理解
1、之前看layui快速上手的引入css及js不是很理解<link rel="stylesheet" href="../layui/css/layui.css"><script src="../layui/layui.js"></script>原来该文件所在的文件夹与layui(../后面的文件名)在同一级目录注:https://blog.cs...转载 2019-05-31 16:37:37 · 150 阅读 · 0 评论 -
java正则表达式获得html字符串中图片的url地址
/** * 得到网页中图片的地址 */ public static Set<String> getImgStr(String htmlStr) { Set<String> pics = new HashSet<>(); String img = ""; Pattern p_image;...转载 2019-07-03 18:44:06 · 2084 阅读 · 0 评论 -
微信 html关闭当前页
WeixinJSBridge.call('closeWindow');转载 2019-08-05 15:50:02 · 794 阅读 · 0 评论 -
jquery点击div跳转页面
<div onclick="window.open('http://www.baidu.com')">在新窗口跳转至百度</div><div onclick="window.open('http://www.baidu.com','_self')">在当前窗口跳转至百度</div>注:https://www.cnblogs.com/tfp...转载 2019-08-01 16:43:08 · 6926 阅读 · 1 评论 -
span 点击事件
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-...转载 2019-08-02 14:05:44 · 29371 阅读 · 0 评论 -
jquery bind button 点击事件
<button id="test">test</button>第一种$("#test").click(function(event){/* Act on the event */});第二种document.getElementById('#foo').addEventListener('click', function() {/* Act on t...转载 2019-08-31 09:11:34 · 987 阅读 · 0 评论 -
html中使用style设置背景
<div class="layui-container" style="background: #00ff00">grid</div>原创 2019-09-17 10:56:46 · 7460 阅读 · 0 评论 -
img 显示默认图片,及动态赋值
<img src="图片的url地址" alt="图片XX" onerror="this.src='默认图片的url地址';this.onerror=null"/>注:https://www.cnblogs.com/wxcbg/p/7459022.html转载 2019-09-18 09:24:01 · 1493 阅读 · 0 评论 -
在"a"标签中添加点击事件
<a href="javascript:void(0)" onclick="roleupdate()">修改</a>注:https://www.cnblogs.com/sushu-yaya/p/6811426.html<!DOCTYPE html><html lang="en"><head> <meta ch...转载 2019-05-31 03:37:41 · 72744 阅读 · 2 评论 -
解决easyui textarea 值不显示及获取textarea的值
一、textarea没有value属性应这样写<textarea rows="6" cols="" name="submit_evidence" id="submit_evidence" style="width: 70%" >${m.submit_evidence!}</textarea>注:https://blog.youkuaiyun.com/AlbertFl...转载 2019-05-20 11:20:50 · 2570 阅读 · 0 评论 -
div内容居中、隐藏及按钮隐藏写法
使div中内容居中的方法style='text-align:center;padding:20px;'<div style='text-align:center;padding:20px;'><input id="btnSubmit" class="btn btn-primary" type="submit" value="付款"/></div>转载 2018-05-10 09:05:58 · 443 阅读 · 0 评论 -
checkbox复选框,如何让其勾选时触发一个事件,取消勾选时不触发
<input type="checkbox" onclick="checkboxOnclick(this)" /><script>function checkboxOnclick(checkbox){if ( checkbox.checked == true){//Action for checked}else{//Action for not ch...转载 2018-05-10 11:44:57 · 198183 阅读 · 11 评论 -
javascript 跳转页面写法
点击菜单跳转(显示链接):点击返回按钮js写法:function back() { //window.location.href = "javascript:history.go(-1)"; window.location.href = "/xldx/a/xldx/orderInfo/"; }原创 2018-05-22 10:23:54 · 880 阅读 · 0 评论 -
在javascript使用EL表达式注意事项
转:http://www.blogjava.net/linxiulei/archive/2012/06/12/348612.htmlhttp://tommy-lu.iteye.com/blog/2289958转载 2018-06-04 11:36:03 · 275 阅读 · 0 评论 -
stringify用法
把原来是对象的类型转换成字符串类型注:https://blog.youkuaiyun.com/blogscsdn/article/details/53256244转载 2018-06-04 12:40:42 · 13983 阅读 · 0 评论 -
js判断数组为空
转:https://www.cnblogs.com/drizzlewithwind/p/7238496.html转载 2018-06-08 14:45:44 · 599 阅读 · 0 评论 -
根据表格长度使td里的内容换行
<td style="word-wrap:break-word; word-break:break-all;" width="55">注册证号/备案凭证编号</td>原创 2018-06-01 17:56:36 · 251 阅读 · 0 评论 -
多个div在一个div中一行水平显示
注:https://blog.youkuaiyun.com/u010615629/article/details/53886774转载 2018-09-19 15:51:43 · 11127 阅读 · 0 评论 -
html中表格内容居右的写法
style='text-align:right'eg: <tr> <th style='text-align:right'>所属机关</th> <td> <input class="easyui-validatebox" readonly="readonl...原创 2018-09-20 09:35:14 · 21380 阅读 · 0 评论 -
html2canvas截图只截取当前可视区域的问题
注:https://blog.youkuaiyun.com/zt_fucker/article/details/76583032项目中使用了html2canvas来截图,弹出对话框,点击按钮截取对话框的内容。结果对话框有滚动条的那部分截不上。解决:把所截图对应的dom宽度设置的大些...转载 2018-11-12 16:18:41 · 10931 阅读 · 0 评论 -
div中文字居中加粗
<div class="font_div"> DIV文字 </div>.font_div{ font-weight:bold;/*加粗*/ text-align:center; /* 水平居中 */ }原创 2018-11-14 14:11:14 · 12303 阅读 · 0 评论 -
对CSS选择器的理解
注:https://blog.youkuaiyun.com/m0_38132420/article/details/78479488转载 2018-11-12 17:11:18 · 247 阅读 · 0 评论 -
js中src赋值理解
不用Jquery时:document.getElementById("imageId").src = "xxxx.jpg";用Jquery时:$("#imageId").attr("src","xxxx.jpg");注:https://blog.youkuaiyun.com/u011498933/article/details/62042227转载 2018-11-12 17:20:04 · 5032 阅读 · 0 评论 -
两个div水平排列
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html><html><head><meta charset="UTF-8"><title>Insert title...转载 2019-01-24 11:13:21 · 14041 阅读 · 0 评论 -
HTML中内容自动换行
自动换行需要对标签元素写css样式.content { width: 100%; height: auto; word-wrap:break-word; word-break:break-all; overflow: hidden; } 但自己这样写了但还是不起作用原来是这样.content-bottom-dl dt { widt...原创 2018-04-25 17:46:05 · 52466 阅读 · 0 评论