Tag:display

  • Display flex arrangement in CSS

    Time:2020-8-7

    As for display: Flex layout, some people have a deep understanding of it. I also learned from watching other people’s things. Display: I don’t know what the layout and basic concepts of flex are. I only use it. Every time I see concepts and things like that, I just take a glance at them. First […]

  • The use of @ 2x graph and @ 3x graph in mobile terminal project

    Time:2020-6-30

    In the process of mobile terminal development, we need to modify the size of the icon according to the DPR of the mobile phone If the device pixel is greater than or equal to 2, double image is used Define a method in stylus bg-image($url) /\*If the device pixel is greater than or equal to […]

  • The use of @ 2x and @ 3x graphs in mobile projects

    Time:2020-6-25

    During the development of mobile terminal, because of the DPR of mobile phone (different device pixel ratio), we need to modify the size of icon according to the DPR: If the device pixel is greater than or equal to 2, use 2-fold graph Define a method in stylus: bg-image($url) /\*If the device pixel is greater […]

  • How to display package date in Android page

    Time:2020-6-22

    There is a demand for the project, and it is required to display the date of packaging the installation package in the app. My idea is: 1, in build.gradle The packaged date variable is defined in. 2. Reference the variables automatically generated by buildconfig file in app and display them. The implementation is as follows: […]

  • An example of image upload and display in JSP

    Time:2020-5-15

    In this paper, an example of JSP image upload and display methods. Share with you for your reference. The details are as follows: 1. Introduction Database applications, especially those based on Web, often involve the storage and display of picture information. Generally, we use the method of storing the image to be displayed in a […]

  • A detailed explanation of the inline block layout implementation of the display attribute of CSS

    Time:2020-5-10

    CSS display property Note: if! DOCTYPE is specified, Internet Explorer 8 (and later) supports attribute values “inline table”, “run in”, “table”, “table caption”, “table cell”, “table column”, “table column group”, “table row”, “table row group”, and “inherit”. All major browsers support the display attribute. Definition and Usage The display attribute specifies the type of box […]

  • Steps to solve the problem of xhost: unable to open display in the installation of ORACLE 11g

    Time:2020-3-31

    1、 Xhosts error After vncserver is installed, the local PC Notebook can connect to the Oracle server remotely through VNC viewer, but in the process of xhost + error reporting, localhost, 127.0.0.1 and local IP address, all of which are unable tool display, as shown below: [[email protected] ~]# export DISPLAY=localhost:1 [[email protected] ~]# xhost xhost: unable […]

  • Pyqt5 implementation of toolbar text and image display at the same time

    Time:2020-3-9

    As follows: import sys from PyQt5.QtWidgets import QMainWindow, QTextEdit, QAction, QApplication from PyQt5.QtGui import QIcon from PyQt5.QtCore import Qt class Example(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): textEdit = QTextEdit() self.setCentralWidget(textEdit) exitAction = QAction(QIcon(‘images/exit.png’), ‘Exit’,self) exitAction.setShortcut(‘Ctrl+Q’) exitAction.setStatusTip(‘Exit application’) exitAction.triggered.connect(self.close) self.statusBar() menubar = self.menuBar() fileMenu = menubar.addMenu(‘&File’) fileMenu.addAction(exitAction) toolbar = self.addToolBar(‘Exit’) #Toolbar.settoolbuttonstyle (qt.toolbuttontextundericon) × text and […]

  • Example of PyQt4 real time display text content GUI

    Time:2020-2-13

    First, create a txt.py file to save the contents of the crawler #! /usr/bin/env python # -*- coding: utf-8 -*- Txt_name = [‘photographer Li Xiaolei’, ‘match Hanfeng’, ‘Shi Yong Gang’, ‘CCTV5 sports news’, ‘Yoga Lin’, ‘Hangzhou Weibo city event’, ‘May days’, ‘beauty’s new vision’, ‘talk about your feelings’, ‘people.com.cn, ‘CCTV news’, ‘Jia Ling’, ‘released in […]

  • Analysis of common query and display methods of JSP page

    Time:2020-1-15

    The example of this paper describes the common query and display methods of JSP page. To share with you for your reference, as follows: Background: 1. The database query results need to be displayed in a list in JSP2. In a good J2EE mode, database query is generally implemented by Dao (data access object), and […]

  • Hide HTML elements through display or visibility

    Time:2019-12-27

    Sometimes we need to control whether HTML elements in web pages are displayed or hidden according to certain conditions, which can be realized through display or visibility. Use the following example to understand the difference between display and visibility. The simple example code is as follows: Copy code The code is as follows: <html> <head> […]