css - 通过 css 更改调整大小的属性
问题描述
我有一个可以通过 css 调整大小的 div。
HTML:
<div id="resize">
<img src="{{env.assets_url}}assets/images/minified_signhere.png" [hidden]="!isNameNull(sign.name)" [attr.id]="'sign-img' + myindex">
<img src="{{env.assets_url}}assets/images/minified_signhere_dim.png" [attr.id]="'dimimg' + myindex" [hidden]="isNameNull(sign.name)">
<div style="position: absolute;z-index: 1000;left: 100%;" class="signbtns">
<span style="font-size: 17px; margin-bottom: 5px" class="fa fa-trash float-right change-cursor" aria-hidden="true" (click)="deleteSign(myindex)"
data-toggle="tooltip" title="Click to delete the signature."></span>
<span style="font-size: 17px;" class="fa fa-pencil float-right change-cursor" (click)="editSign(myindex)" aria-hidden="true"
data-toggle="tooltip" title="Click to edit the signature."></span>
</div>
</div>
以下是CSS
#resize {
display: flex;
resize: both;
overflow:auto;
}
::-webkit-resizer {
background-color: red;
cursor: ew-resize;
}
div 正在正确调整大小。我想自定义调整大小的背景颜色,但::-webkit-resizer
似乎不起作用。
解决方案
你改变的颜色#resize
,不是::-webkit-resizer
。
推荐阅读
- video - 如何使用 Azure 媒体服务对 mp4、OGG 格式的视频文件应用水印
- android - 拆分成模块后,Jenkins 中的 Android 构建速度太慢
- image - Flutter:如何选择和显示图像
- jupyter-notebook - 如何将两个单独的图表组合成一个图表 Jupyter Notebook
- reactjs - 创建反应应用程序时不断出现相同的错误
- syntax - 查询表达式 Access 中的语法错误(缺少运算符)
- json - 在 ListView 中显示嵌套的 json 数组
- python - ElementClickInterceptedException:元素点击被拦截。其他元素会收到点击:Selenium Python
- reactjs - React - 将孩子分成几部分
- apache-flink - 如何按时间排序或加入 KeyedStream?