Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lmj01 committed Apr 26, 2024
1 parent b196cd6 commit a0546d2
Show file tree
Hide file tree
Showing 9 changed files with 215 additions and 218 deletions.
7 changes: 7 additions & 0 deletions cpl/Java.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,10 @@ spring.data.neo4j.uri=http://localhost:7474




##

### [itext](https://api.itextpdf.com/iText/java/)
> v7.1.8
- A4 width:595.0, height:842.0
File renamed without changes.
13 changes: 13 additions & 0 deletions index/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@
- [diff算法原理](../web/diff.md)
- [使用过的库](../web/library.md)
- [FRP-Functional Reactive Programming](../cpl/frp.md)
- [web](./web.md)
- [浏览器](./browser.md)
- [html](./html.md)
- [CSS](./css.md)
- [适配屏幕](./adapt.screen.md)
- [font](./font.md)
- [http](./http.md)
- [nginx](./nginx.md)
- [javascript](./JavaScript.md)
- [typescript](./typescript.md)
- [bable](./babel.md)
- [vue](./vue.md)


### 图形学
- [裁剪](../cg/tools/culling.md)
Expand Down
70 changes: 0 additions & 70 deletions web/hover.md

This file was deleted.

73 changes: 73 additions & 0 deletions web/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,79 @@ onselectstart="return false;" // 文字禁止鼠标选中
onselect="documnet.selection.empty();" // 禁止复制
```
## 其他
### hover
```html
<style>
.child {
position: absolute;
display:none;
z-index: 5;
}
.parent {
diplay:inline-block;
}
.parent:hover .child {
display: block;
}
</style>
<div class="parent">
<h1>hover on element</h1>
<div class="child">
<h2>other information</h2>
</div>
</div>
```
悬浮打开与关闭某些元素,按照上面的样式就可以
```html
<style>
.one {
margin: 0 auto;
width: 400px;
height: 300px;
background: #dedede;
}
.two {
margin: 0 auto;
width: 100px;
height: 100px;
background: #5a5a5a;
}
.three {
margin: 0 auto;
width: 200px;
height: 200px;
background: #4d3e;
}
.four {
margin: 0 auto;
width: 300px;
height: 100px;
background: #723203;
}
.one :hover {
background: lightcoral;
}
</style>
<div class="one">
<div class="two"></div>
<div class="three"></div>
<div class="four"></div>
</div>
```
注意,one的hover之间是否有空格,
有空格hover的范围是子元素
无空格hover的范围是父元素
:hover必须置于:link和:visited之后
一定不要混乱元素的层级,比如在child中的有比它高的样式,就会出现各种问题
如果测试一个简单的样式,很容易确认,可是一旦牵扯到多个样式,且多个样式挨着时,
问题就会出现各种问题!
## TemplateEngine
模板的诞生就是为了将显示与数据分离,把数据替换为模板中的一些项,最终得到html文件就是模板引擎的工作。
Expand Down
35 changes: 0 additions & 35 deletions web/i18n.md

This file was deleted.

Loading

0 comments on commit a0546d2

Please sign in to comment.