CSS 区域在 Visual Studio 2012 中不起作用 [英] CSS region not working in Visual Studio 2012

查看:25
本文介绍了CSS 区域在 Visual Studio 2012 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 css 文件中有以下内容,但 css 区域不起作用.没有可点击的折叠或展开图标.

I have the following in my css file but css region doesn't work. There's no collapse or expand icon to click on.

但是 C# 区域有效,只是 css 区域无效.

But the C# region is working, just css region isn't.

/*#region shared styles */
.blah { background-color: red; }
.foo { line-height: 1.2em; }
/*endregion */

推荐答案

您缺少 '*' 和 'endregion' 之间的 '#'

Your missing the '#' between the '*' and 'endregion'

试试

/*#region shared styles */

.blah { background-color: red; }

.foo { line-height: 1.2em; }

/*#endregion */

这篇关于CSS 区域在 Visual Studio 2012 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆