


I have a question~~It's very urgent~~Waiting online~~~God help~~~_html/css_WEB-ITnose
CSS Wanmei Time Travel Network HTML Travel Route Hainan Travel Guide
I want to write the three words "Day 1" into this div box. Added on both sides of "1" to set the attributes for "1" separately.
But there is a problem. I also want "1 to be displayed in the center" to have the effect like this: , instead of the effect in the top picture.
How to ask for help? ? ? ? ?
Code:
Day 1
CSS: .D1_L_shang3 {
height: 81px;
width: 71px;
background: url("../images/yuanbiao1.png") left top no-repeat;
position: absolute;
z -index: 4;
left: 0px;
top: 50px;
line-height: 81px;
font-size: 16px;
text-align: center;
padding -right: 5px;
color: #FFF;
font-family: "Microsoft YaHei","宋体","黑体",Arial;
}
.D1_L_shang3 span {
font-size: 35px;
color: #FFF;
font-family: "Microsoft Yahei", "宋体", "黑体", Arial;
}
Reference: http ://www.wanmeitime.com/products/xianlu.php?xianlubianhao=352
Reply to discussion (solution)
God help~~~
<div class="D1_L_shang3"> <span>第</span><span class="num">1</span><span>天</span></div>
.D1_L_shang3 span{vertical-align:middle;}.D1_L_shang3 span.num{font-size: 35px;color: #FFF;font-family: "微软雅黑","宋体","黑体",Arial;}
or
.D1_L_shang3 span{font-size: 35px;color: #FFF;font-family: "微软雅黑","宋体","黑体",Arial;position:relative;top:8px; /*自己改*/}
<style type="text/css">.D1_L_shang3 {height: 81px;width: 71px;background: url("http://www.wanmeitime.com/products/images/yuanbiao1.png") left top no-repeat;position: absolute;z-index: 4;left: 0px;top: 50px;line-height: 81px;font-size: 16px;text-align: center;padding-right: 5px;color: #FFF;font-family: "微软雅黑","宋体","黑体",Arial;}.D1_L_shang3span {font-size: 35px;color: #FFF;display: inline-block;height: 47px;font-family: "微软雅黑","宋体","黑体",Arial;margin-left: 5px;/*改左边间距*/margin-right: 5px;/*改右边间距*/}.D1_L_shang3s{ display: inline-block; height: 47px;}</style><div class="D1_L_shang3"> <span class="D1_L_shang3s">第</span><span class="D1_L_shang3span">1</span><span class="D1_L_shang3s">天</span> </div>
XML/HTML code?123
It’s useless. . . . . Let me do it directly on the picture
XML/HTML code?123456789101112131415161718192021222324252627282930313233

HTML, CSS and JavaScript are the core technologies for building modern web pages: 1. HTML defines the web page structure, 2. CSS is responsible for the appearance of the web page, 3. JavaScript provides web page dynamics and interactivity, and they work together to create a website with a good user experience.

The function of HTML is to define the structure and content of a web page, and its purpose is to provide a standardized way to display information. 1) HTML organizes various parts of the web page through tags and attributes, such as titles and paragraphs. 2) It supports the separation of content and performance and improves maintenance efficiency. 3) HTML is extensible, allowing custom tags to enhance SEO.

The future trends of HTML are semantics and web components, the future trends of CSS are CSS-in-JS and CSSHoudini, and the future trends of JavaScript are WebAssembly and Serverless. 1. HTML semantics improve accessibility and SEO effects, and Web components improve development efficiency, but attention should be paid to browser compatibility. 2. CSS-in-JS enhances style management flexibility but may increase file size. CSSHoudini allows direct operation of CSS rendering. 3.WebAssembly optimizes browser application performance but has a steep learning curve, and Serverless simplifies development but requires optimization of cold start problems.

The roles of HTML, CSS and JavaScript in web development are: 1. HTML defines the web page structure, 2. CSS controls the web page style, and 3. JavaScript adds dynamic behavior. Together, they build the framework, aesthetics and interactivity of modern websites.

The future of HTML is full of infinite possibilities. 1) New features and standards will include more semantic tags and the popularity of WebComponents. 2) The web design trend will continue to develop towards responsive and accessible design. 3) Performance optimization will improve the user experience through responsive image loading and lazy loading technologies.

The roles of HTML, CSS and JavaScript in web development are: HTML is responsible for content structure, CSS is responsible for style, and JavaScript is responsible for dynamic behavior. 1. HTML defines the web page structure and content through tags to ensure semantics. 2. CSS controls the web page style through selectors and attributes to make it beautiful and easy to read. 3. JavaScript controls web page behavior through scripts to achieve dynamic and interactive functions.

HTMLisnotaprogramminglanguage;itisamarkuplanguage.1)HTMLstructuresandformatswebcontentusingtags.2)ItworkswithCSSforstylingandJavaScriptforinteractivity,enhancingwebdevelopment.

HTML is the cornerstone of building web page structure. 1. HTML defines the content structure and semantics, and uses, etc. tags. 2. Provide semantic markers, such as, etc., to improve SEO effect. 3. To realize user interaction through tags, pay attention to form verification. 4. Use advanced elements such as, combined with JavaScript to achieve dynamic effects. 5. Common errors include unclosed labels and unquoted attribute values, and verification tools are required. 6. Optimization strategies include reducing HTTP requests, compressing HTML, using semantic tags, etc.


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

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver Mac version
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software