随笔分类 -  htmlcss

摘要:转载: https://www.cnblogs.com/summit7ca/p/6944215.html E 代表HTML标签。 E#id 代表id属性。 E.class 代表class属性。 E[attr=foo] 代表某一个特定属性。 E{foo} 代表标签包含的内容是foo。 E>N 代表N是 阅读全文
posted @ 2021-07-06 16:53 tcanhe 阅读(80) 评论(0) 推荐(0)
摘要:https://blog.mazey.net/1716.html header{ height:10px; display:sticky; } content{ min-height: calc(100vh - 10px ); display:flex; flex-direction:column; 阅读全文
posted @ 2020-11-17 14:20 tcanhe 阅读(169) 评论(0) 推荐(0)
摘要:转载:https://www.cnblogs.com/kuai-man/p/10578158.html 1.href:Hypertext Reference的缩写,超文本引用,它指向一些网络资源,建立和当前元素或者说是本文档的链接关系。在加载它的时候,不会停止对当前文档的处理,浏览器会继续往下走。常 阅读全文
posted @ 2020-10-20 17:48 tcanhe 阅读(204) 评论(0) 推荐(0)
摘要:1 <select onfocus="this.defaultIndex=2;" onchange="this.selectedIndex=this.defaultIndex;"> 2 <option value="1">1</option> 3 <option value="2">2</optio 阅读全文
posted @ 2020-09-21 10:55 tcanhe 阅读(199) 评论(0) 推荐(0)
摘要:banner 背景自适应 background: url() no-repeat center center; background-size:cover; width:100% 阅读全文
posted @ 2020-09-01 14:49 tcanhe 阅读(220) 评论(0) 推荐(0)
摘要:获取表单元素之后,打开一个弹框,但是点了按钮之后不停刷新,没办法进行操作,简单搜索之后发现解决办法 将原来的 1 input type="submit" 修改为 1 input type="button" 阅读全文
posted @ 2020-08-11 09:12 tcanhe 阅读(158) 评论(0) 推荐(0)
摘要:autocomplete="off"——输入框 自动提示 删除 autocomplete 属性适用于 <form>,以及下面的 <input> 类型:text, search, url, telephone, email, password, datepickers, range 以及 color。 阅读全文
posted @ 2020-08-06 22:33 tcanhe 阅读(114) 评论(0) 推荐(0)
摘要:background-size:cover | cotain 背景图 object-fill: fill/ contain / cover / none / scale-down fill 默认值。内容拉伸填满整个content box, 不保证保持原有的比例。 contain: 保持原有尺寸比例。 阅读全文
posted @ 2020-08-06 22:20 tcanhe 阅读(1533) 评论(0) 推荐(0)
摘要:viewport width=device-width initial-scale=1 是个坑 之后补 阅读全文
posted @ 2020-03-05 22:11 tcanhe 阅读(147) 评论(0) 推荐(0)