How do I add checkboxes to a VisualStudio page?

Time:2019-10-24

If you want to make a check box in VisualStudio, how to add a check box, let’s take a look at the detailed tutorial.

Software name:
Visual Studio 2017 official version (with offline installation package) official website simplified Chinese version
Software size:
15GB
Update time:
2017-03-14

1. Open an existing web page with Visual Studio, in this example, the TwoFish websiteDefault.aspxA web page.

2, findThe body tagUnder theDiv tags, as shown below.

3. First of all, inDiv tagsDown, input controlCheckbox formatThe code.

4. Among them,heightFor the height of the entire check box,widthInclude the width of the text for the entire check box.

5、Check boxThe contrast from the top of the page is 25 pixels, and the distance from the left is125 pixels, the distance from the right is set asautomatic

6. Next, define the checkboxColor format, to the leftA benchmarkAnd the color is blue.

7. Then, define the check box, the type of the check box ischeckbox, named select.

8. Finally, setCheck box text format, the code is shown below.

9. Font size of the text,Set it to number 20

10. The font color of the text is blue, and the code is shown below.

11. The text content of the check box is selected, and the code is written inThe font standardSign in.

12, browse the web in the browser, you can see in the page added aCheck box, click to select it.

Those are the tutorials for VisualStudio to add checkboxes. Enjoy and stay developpaer.

Related recommendations:

How to delete the image files referenced by VisualStudio?

How does visualstudio call forms for other projects?

How can a VisualStudio2015 project be exported as a template?

Recommended Today

The method of obtaining the resolution of display by pyqt5

The code is as follows import sys from PyQt5.QtWidgets import QApplication, QWidget class Example(QWidget): def __init__(self): super().__init__() self.initUI() #Interface drawing to initui method def initUI(self): self.desktop = QApplication.desktop() #Get display resolution size self.screenRect = self.desktop.screenGeometry() self.height = self.screenRect.height() self.width = self.screenRect.width() print(self.height) print(self.width) #Show window self.show() if __name__ == ‘__main__’: #Create applications and objects app […]