其实vertical-align是用来设置行内元素对齐方式的。说白了就是display属性值为inline、inline-block、inline-table另加一个table-cell的元素。 作用1:可以大概的让元素居中对齐 作用2:去除图片底色的空白缝隙,这种情况是图片下面有空白部分 ...
分类:
其他好文 时间:
2021-01-02 10:54:01
阅读次数:
0
一、Vue3.0响应式 1.在Vue2.x中是通过defineProperty来实现响应式数据的 2.在Vue3.x中是通过Proxy来实现响应式数据的 let obj = { name: 'lng', age: 18 } // 原始对象 let state = new Proxy(obj, { / ...
<?xml version="1.0" encoding="UTF-8"?> <LinearLayout android:padding="16dp" android:orientation="vertical" android:background="@drawable/bg" android:l ...
分类:
其他好文 时间:
2020-12-25 12:11:47
阅读次数:
0
1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <LinearLayout android:padding="16dp" android:orientation="vertical" android:background="@drawable/bg" and ...
分类:
其他好文 时间:
2020-12-25 11:58:52
阅读次数:
0
参数必须要传,不用也要传空 set(getdep1 ${CMAKE_SOURCE_DIR}/clone.sh) execute_process(COMMAND ${getdep1} "") set(MAKE_CMD "${CMAKE_CURRENT_SOURCE_DIR}/makeHeaders.s ...
分类:
其他好文 时间:
2020-12-23 11:53:16
阅读次数:
0
<style> /* pc_ban */ .pc_ban .swiper-slide { overflow: hidden; } .pc_ban .sw_bg { width: 100%; height: 600px; top: 0; left: 0; transform: scale(1.1); ...
分类:
其他好文 时间:
2020-12-22 12:02:51
阅读次数:
0
不同框架下样式名称有所不同,最终转换为HTML文件时的样式名称及设置如下: <div style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis;" > <span> 文本长度测试文本长度测试文本长度测试 </span> ...
分类:
Web程序 时间:
2020-12-09 12:27:26
阅读次数:
15
当在页面中插入图片时,img 默认底部有空白效果。 产生的原因: 由于图片的 display 属性默认是 inline ,vertical-align 属性的默认值是 baseline (以基线对齐),所以图片底部出现留白区域。 常用解决方法: 将 img 变为块级元素 img { display: ...
分类:
其他好文 时间:
2020-12-07 12:00:28
阅读次数:
4
注意点:想要将缩放之后的div对齐顶点,那么需要将css属性设置为:transform-origin: 0 0 <div style="width: 900px; height: 900px; background: gray; overflow: auto;"> <div style="width ...
分类:
Web程序 时间:
2020-12-07 11:57:04
阅读次数:
8
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endp ...
分类:
其他好文 时间:
2020-12-04 11:23:41
阅读次数:
6