简体   繁体   English

CSS样式表Visual Studio 2015中的“添加样式规则”选项在哪里?

[英]Where is Add Style Rule option in css stylesheet Visual Studio 2015?

I am watching asp.net tutorial in visual studio but I cannot find the Add Style Rule option it occurs from right click on css also I cannot drag and drop the stylesheet on my html document. 我正在Visual Studio中观看asp.net教程,但是找不到右键单击CSS时出现的“ 添加样式规则”选项 ,也无法 样式表 拖放html文档上。

在此处输入图片说明

  1. Open the CSS style sheet in the editor. 在编辑器中打开CSS样式表。
  2. In the Styles menu, click Add Style Rule. 在样式菜单中,单击添加样式规则。

The Add Style Rule dialog box is displayed. 显示“添加样式规则”对话框。

Note: The Styles menu appears when you open an external CSS style sheet for editing. 注意: 打开外部CSS样式表进行编辑时,将显示“样式”菜单。 On the Styles menu, the Build Style option becomes available when you put the cursor inside the braces for a style rule. 在“样式”菜单上,将光标放在样式规则的花括号内时,“构建样式”选项将变为可用。

  1. Select the style options that you want, and then click OK. 选择所需的样式选项,然后单击“确定”。

The style rule is added to the CSS style sheet. 样式规则已添加到CSS样式表。

Reference: https://msdn.microsoft.com/en-us/library/bb907572(v=vs.100).aspx 参考: https : //msdn.microsoft.com/zh-cn/library/bb907572(v=vs.100).aspx

The Stylesheet Toolbar for VS 2015 was not included. 不包括VS 2015的样式表工具栏。 According to Microsoft, they are planning on bringing a more powerful experience back at sometime in the future. 根据Microsoft的说法,他们计划在将来的某个时候带回更强大的体验。 That is what I found when I was looking for the same thing. 这是我在寻找相同物品时发现的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM