这个属性的官方文档语法:示例代码: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> *{ margin: 10px; } .a{ float: left; height: 300px;width ...
分类:
Web程序 时间:
2020-06-11 20:01:33
阅读次数:
324
问题: 用了 overflow:hidden 会影响 list-style,即当ul 中的li 的overflow 为hidden的时候 。属性 list-style 是不起作用的,不显示前面的点、圈等样式。 解决办法: 在 ul 或 li 内加入样式:list-style-position: in ...
分类:
其他好文 时间:
2020-06-11 19:46:35
阅读次数:
50
<style> .outter { position: relative; padding: 5px; height: 50px; width: 300px; } .outter::before { position: absolute; content: ''; height: 10px; wid ...
分类:
Web程序 时间:
2020-06-11 16:19:08
阅读次数:
117
相信学过CSS的同学都曾经对于position的各种属性很困惑,尤其是absolute和relative定位,简直就是傻傻分不清,笔者写这篇文章就是希望通过代码实验的方式来揭露absolute和relative定位的本质区别。 一、默认定位 HTML结构如下:<h1>和<h2>是为了与窗口的顶部隔开 ...
分类:
其他好文 时间:
2020-06-11 10:29:25
阅读次数:
52
关于css的flex布局,我只想说他真的解决了曾经布局中float和position中的痛苦,网上关于flex的文章很多了,在这里分享两篇好的文章(真的只有两篇)供大家学习. 一.阮一峰(不用多说很详细)Flex 布局教程:实例篇Flex 布局教程:语法篇 二.渔人码头用大彩图和GIF动画解释 用大 ...
分类:
其他好文 时间:
2020-06-11 01:07:28
阅读次数:
108
1、instr()函数的格式 (俗称:字符查找函数) 格式一:instr( string1, string2 ) // instr(源字符串, 目标字符串) 格式二:instr( string1, string2 [, start_position [, nth_appearance ] ] ) / ...
分类:
数据库 时间:
2020-06-10 21:15:21
阅读次数:
70
说明: <> 中的内容是自己定义的内容 [] 中的内容是可以省略的 field 包含字段名和数据类型,field_name 仅指字段名 table_name 指表名 position 指字段位置,可取值:FIRST、AFTER <field> 修改表名 -- 修改数据表名称。 -- old_tabl ...
分类:
数据库 时间:
2020-06-10 19:12:24
阅读次数:
75
如何设置标题栏一直置顶固定显示? 只需要给标题栏所在的容器,以下设置: position: fixed; top: 0px; left: 0px; width: 100%; 位置固定在左上角,同时宽度填充满。当标题栏容器层级正常时,也可以使用position:absolute 以下是Position ...
分类:
Web程序 时间:
2020-06-10 16:02:16
阅读次数:
330
1、代码 public void downloadApiDoc(HttpServletResponse response) { ClassPathResource classPathResource = new ClassPathResource("api.pdf"); try (InputStre ...
SV_POSITION xy = screen space coordinate (>1, offseted by 0.5)z = proj.z / proj.w = clip space depthw = view.z = view space depth ...
分类:
其他好文 时间:
2020-06-09 16:50:17
阅读次数:
52