


Newbie, what is the appropriate size for setting the webpage when creating a webpage? _html/css_WEB-ITnose
I want to achieve such a web page size.
Designed web pages, when the user’s client resolution is different, the web page will be adjusted accordingly.
I made a web page myself. On my own computer, the resolution shows that the layout is normal. But on other people’s computers, if the resolution is different from my computer, the web page displays abnormally. For example, the background image will be tiled. After displaying once, display half of it again
Reply to discussion (solution)
Use 100 points to kill all resolutions.
This problem will not occur if you use relative layout
If the user’s client resolution is different, the web page will be adjusted accordingly.
You can use js to identify the resolution and then call different styles, but this is very troublesome because you have to write several sets of styles
It is recommended to use percentage or relative layout as mentioned on the 2nd and 3rd floors
In addition, you said "the background image will be displayed once in the tile display, and then half of it will be displayed"
This just needs to center the background and only display it once
background:url() center no-repeat
Many web pages now advocate responsive layout. You can learn about
There are two ways, 960 layout or responsive layout.
The default page of 960 layout is 960 pixels, and the wider sides are left blank. Responsive layout is all done with percentages.
Nowadays, responsive layout is popular
You can use responsive layout to try out
The background image can be set to not be tiled, and then the background image can be designed to match the background color
Background image You can set it to not be tiled, and then the background image can be designed to match the background color
Beginners, after learning
Ask:
Just like the web page of the csdn forum changes with the user's resolution change.
For example: Compared with 1024*768 and 1280*1024, the picture text becomes larger, but the layout is not messy. Why does the picture become larger or smaller? I just want to achieve something like this
Ask:
Just like the web page of the csdn forum changes with the user's resolution.
For example: Compared with 1024*768 and 1280*1024, the picture text becomes larger, but the layout is not messy. Why does the picture become larger or smaller? I just want to achieve this
How do you control whether the picture becomes larger or smaller?
Please understand the relationship between pixels and resolution.
I don’t know! Feel sorry! New to web development!
You can change the screen resolution of your computer, just look at the csdn website and you will know! I don’t know how to describe it
Relatively adaptable, it actually requires a lot of effort. I suggest you not use this as the final version if you are not an experienced user
My suggestion is to make a few more versions with different widths and judge the client through js Choose a relatively narrow one (can be appropriately reduced by an order of magnitude)
Record the cookie, and future pages can read this cookie as the basis for page layout
In addition, keep some buttons on the page for customers to choose the width. , to avoid errors in js judgment, customers can adjust it manually, and of course cover cookies
Then use relative adaptability as extracurricular homework to develop a feasible final single version
Anyway, I don’t think it is This version can be adapted to mobile phones, notebooks, 1080p, and 4k screens at the same time... I haven’t mentioned that some screens can be erected
Fixed width, centered. Add a background color to the web page.
It is safer for novices to use the 960 layout directly, but you can learn responsive layout, but this layout takes a lot of time and effort. You must consider the performance of a series of widths from 320 to 1920, if necessary You also have to hide some content, which is indeed too demanding for novices.
You can check the 960 grid system
Look at the resolution, generally 1024*768
Relatively adaptable actually requires a lot of effort. It is recommended that you are not an experienced user and do not take this as the final result. Version
Agreed! ! !
In addition, if you look at the CSS of major websites, you will know that shit is relatively adaptive. Difficult one B.
width:100%
Ask:
Just like the webpage of the csdn forum changes with the user's resolution.
For example: Compared with 1024*768 and 1280*1024, the picture text becomes larger, but the layout is not messy. Why does the picture become larger or smaller? I just want to implement this
CSS style using percentages, so that it can automatically change according to the browser or screen size.
Let the original poster take a look at the bootstrap source code and follow his instructions.
background:url() center no-re solves the problem of tiling your images.
Also have width: 1100px; Define the width and height of your web page accordingly. Add width: 100% to the overall large container; no matter how the resolution changes, the web page layout will not change.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Mistlock Kingdom is an open world game where players can play as Sons of Fire to survive and explore. The game combines the unique entertainment of action RPG challenges, bringing players endless surprises and joy. In the game, players can explore resources, environments, weapons and more. Some novice players may be curious about how to get started with the game. In this introduction and sharing, we will provide you with some relevant getting started guides. Tips for Beginners to the Fog Lock Kingdom: The danger levels of areas shrouded by miasma are different. During the exploration process, new areas of the map will be gradually unlocked, and the location of the areas shrouded by miasma can be seen. The map will be distinguished by two colors. The blue area can be entered in a short time. The time you can stay will also be different depending on the character's ability level.

Anchor Arrival is a 3D turn-based card game with a high-definition beautiful girl two-dimensional theme. It provides a rich and exciting combination of characters for players to explore and experience. It has many powerful combinations of high-quality lineups. New players are also curious novices. What powerful characters are recommended in the pool? Let’s take a look at the selection reference for novices to win ten consecutive golds! Anchor Point Advent is a powerful character recommendation for novice pools. The first ten-consecutive pick is Alice. She is mainly a single-target lightning-type burst character. The output is very explosive, and the experience will be very friendly to newcomers, so it is highly recommended to choose it. It is recommended to choose the combination of "Alice" + "Antelope" for 10 points. Alice is the most worthy character to output the goldpire attribute, and is not even a bit stronger than the other two characters in the novice card pool. Alice can pass special

Essential skills for newbies to PyCharm: Mastering the use of batch indentation requires specific code examples Overview: PyCharm is a powerful Python integrated development environment (IDE) that provides many practical tools and functions to help developers improve efficiency . In the daily coding process, we often need to indent the code to keep the code format neat and beautiful. The batch indentation function provided by PyCharm can help us quickly batch indent the code and improve coding efficiency. This article will explore Py

Crown of the Ancients is a high-quality and strategic card mobile game based on Western magical adventure. In-game secret exploration, ruins adventure, national championship and other special gameplay are waiting for you to experience. So for novice players, if they want to get started with this game quickly, a novice guide is indispensable. Today, the editor will bring you the relevant guide, let’s take a look. An overview of the Ancient Crown beginner’s guide, gameplay and area opening styles: 1. Diamond accumulation flow: Everything is focused on accumulating diamonds, and then you start to work hard after leaving the village. Except for the main magic weapon, three flywheel activities, etc., which require diamonds, the others are ignored. The main focus is on one of them. Don't pay attention to the hero challenge. You can fight as many as you can, and don't force it. Advantages: You only need to mess around to accumulate diamonds. After leaving the village, you can quickly access the latest activities with diamonds, get new series of hardware heroes, and diamonds are broken.

C Language or C: Which Is More Suitable for New Programmers In the era of rapid development of modern technology, learning programming has become an increasingly popular choice, whether as part of career development or as a way to improve logical thinking skills. Among many programming languages, C language and C are both very classic and representative languages. Many people are confused about how to choose C language or C as an entry-level programming language. So, is C language more suitable for programming novices, or is C more suitable? Need specific code examples to

Phantom Beast Parlu is an open world survival game that supports multiplayer online. The game has a wealth of ways to collect creatures, and players can engage in various explorations such as combat, construction, and survival. For novice players, it is very important to master the operating skills and gameplay content of the game. Here are some newbie strategy tips for reference. 1. Learn basic operations: Before starting the game, it is recommended to learn the basic operations of the game, including movement, attack, collection, etc. This allows for better control of the character's operations. 2. Explore the world: The world of Phantom Beast Parlu is very vast, with many hidden places and resources waiting for players to discover. Don’t be afraid to take risks, try to explore every corner and find the Phantom Beast Palu. Quick tips for newbies. 1. Base site selection, put flatness first. In the Phantom Beast Pallu, choose a

What is the most cost-effective way for a novice to buy coins? When buying cryptocurrencies, newbies can adopt the following strategies to get better returns: learn and research the target currency in depth, choose well-known coins for investment, use trusted exchanges for trading, set a reasonable budget and buy regularly , avoid frequent transactions and impulsive investments, use secure wallets to store assets, and pay close attention to market dynamics. These tips will help newbies have a better investing experience when buying cryptocurrencies. Before buying cryptocurrencies, it is important to understand the basics and market conditions. Understand the characteristics, uses and market prospects of different currencies and avoid blindly following the trend. Through learning and research, you can make smarter investment decisions. For newbies, it is usually safer to choose a well-known, popular currency with a good reputation. Bits

How should new players of Three Kingdoms Conquer the World operate? Three Kingdoms Conquer the World is a war Three Kingdoms strategy game that allows players to combine military commander lineups. It provides a combination of multi-professional gameplay and can explore development planning, management, and strategies in the context of a sandbox map. It is full of elements and contains a lot of strategy and wisdom contests. Many newcomers are still curious about how to operate it. This issue brings you some help sharing for beginners! A complete guide for beginners in the Three Kingdoms to Conquer the World. 1. Strengthening of Troops. Sufficient troop strength is to ensure the acquisition of resources. and the basis for development. To keep your troops growing, you need to pay attention to the following points: Upgrade buildings and generals: By upgrading buildings and general levels, your military strength can be greatly enhanced. Technology research: Research technology in a timely manner to improve the offensive and defensive attributes of units. Conquer dungeons: Participate in dungeon battles and obtain abundant
