详细问题描述
(DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题)
[内容]
使用 HBuilderX 编写 css 文档的时候,alt+左键点击 html 里面的 class 标签跳转到外部的 css 样式表,有的可以点击跳转到准确的位置,有的点击不可以跳转到准确的位置,还得需要查找功能才能找到。
重现步骤
[步骤]
1.点击 header 标签下的 bar,跳转到外部样式表ratchet.css。
2.点击 clsss='content',跳转到外部样式表ratchet.css。
[结果]
1.跳转到了该位置:
.bar-nav ~ .content {
padding-top: 44px;
}
2.跳转到了该位置:
.card .table-view {
margin-bottom: 0;
border-top: 0;
border-bottom: 0;
}
[期望]
1.跳转到该位置:
.bar {
position: fixed;
right: 0;
left: 0;
z-index: 10;
height: 44px;
padding-right: 10px;
padding-left: 10px;
background-color: white;
border-bottom: 1px solid #ddd;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
2.跳转到该位置:
.table-view {
padding-left: 0;
margin-top: 0;
margin-bottom: 15px;
list-style: none;
background-color: #fff;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
[如果语言难以表述清晰,拍一个视频或截图,有图有真相]
IDE运行环境说明
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
[IDE版本号]
2.0.2.20190614-alpha
附件
[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]
[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]
[App安装包或H5地址]
[可重现代码片段]
解压打开后,在目录的index.html 中可以看到运行的结果。
联系方式
[QQ]