简体   繁体   中英

Why during drag a control from toolbox to web form the Visual Studio 2013 add style to this control automatically?

When drag a control from ToolBox to WebForm , visual studio 2013 add style automatically to this control like this:

<asp:Button ID="Button1" runat="server" 
style="z-index: 1; left: 1129px; top: 540px; position: absolute" Text="Button" />

But I will not the visual studio add style to control automatically.

In Visual studio go to Tools|Options

go to HTML Designer|CSS Styling then:

  1. select Manual Style Application
  2. uncheck Change positioning to absolute added using ToolBox, paste or drag and drop .

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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