A list page implemented by HTML/CSS_html/css_WEB-ITnose
It’s another day off. During the day, I went shopping with my friends and chatted. It was evening and the Internet was boring, so I thought it was time to practice.
This time I made one On the page, there is a banner at the top. A jQuery logic is used to determine that when the initial top value of the banner is less than the top value of the window, the top of the banner is designated as 0px pixels.
The middle of the page is made with ul li div nesting List can be used as a template to read data in the background to generate a product display page. There is no pagination or sidebar. The style is a bit ugly, I can’t help it, it’s not as good as the designer’s, and I hope an expert can give me some advice.
Below are the codes and renderings
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title></title> 5 <script src="jquery-1.8.3.js" type="text/javascript"></script> 6 <style> 7 body { 8 background-color: #e5e7e8; 9 } 10 11 #demoFixed { 12 position: fixed; 13 width: 100%; 14 right: 0%; 15 height: 50px; 16 opacity: 0.6; 17 background-color: red; 18 text-align: center; 19 box-shadow: 6px 10px 10px #808080; 20 border-radius: 10px 10px 10px 10px; 21 letter-spacing: 5em; 22 display: inline-block; 23 line-height: 50px; 24 } 25 26 #uu { 27 text-align: center; 28 list-style-type: none; 29 margin-top: 40px; 30 } 31 32 #uu .lli li { 33 display: inline-block; 34 padding-left: 10px; 35 list-style-type: none; 36 text-align: center; 37 line-height: 30px; 38 } 39 40 #uu .lli li div { 41 width: 120px; 42 height: 150px; 43 display: inline-block; 44 text-align: center; 45 line-height: 150px; 46 transition: border-radius 0.5s, box-shadow 0.5s,line-height 0.5s, background-color 0.5s; 47 } 48 49 #uu .lli li div:hover { 50 cursor: pointer; 51 border: 1px solid #ff6a00; 52 border-radius: 40px 40px 40px 40px; 53 background-color: #ff6a00; 54 box-shadow: 10px 10px 20px #ff6a00; 55 } 56 </style> 57 <script type="text/javascript"> 58 $(function () { 59 var aa = $("#demoFixed"); 60 var wistart = $(aa).offset().top; 61 $(window).bind("scroll", function () { 62 var wi = $(window).scrollTop(); 63 // $(aa).css("display", ((wistart) > wi) ? "fixed" : "absolute"); 64 $(aa).css("top", ((wi) > wistart) ? '0px' : ''); 65 }); 66 }) 67 </script> 68 </head> 69 <body> 70 <div id="demoFixed"> 71 haha你好吗Walcome 72 <input type="button" style="opacity:0.8; margin-top:-240px;" value="案例" /> 73 </div> 74 <ul id='uu'> 75 <li class="lli"> 76 <ul> 77 <li><div>马达加斯加</div></li> 78 <li><div>马达加斯加</div></li> 79 <li><div>马达加斯加</div></li> 80 <li><div>马达加斯加</div></li> 81 <li><div>马达加斯加</div></li> 82 </ul> 83 </li> 84 <li class="lli"> 85 <ul> 86 <li><div>马达加斯加</div></li> 87 <li><div>马达加斯加</div></li> 88 <li><div>马达加斯加</div></li> 89 <li><div>马达加斯加</div></li> 90 <li><div>马达加斯加</div></li> 91 </ul> 92 </li> 93 <li class="lli"> 94 <ul> 95 <li><div>马达加斯加</div></li> 96 <li><div>马达加斯加</div></li> 97 <li><div>马达加斯加</div></li> 98 <li><div>马达加斯加</div></li> 99 <li><div>马达加斯加</div></li>100 </ul>101 </li>102 <li class="lli">103 <ul>104 <li><div>马达加斯加</div></li>105 <li><div>马达加斯加</div></li>106 <li><div>马达加斯加</div></li>107 <li><div>马达加斯加</div></li>108 <li><div>马达加斯加</div></li>109 </ul>110 </li>111 <li class="lli">112 <ul>113 <li><div>马达加斯加</div></li>114 <li><div>马达加斯加</div></li>115 <li><div>马达加斯加</div></li>116 <li><div>马达加斯加</div></li>117 <li><div>马达加斯加</div></li>118 </ul>119 </li>120 </ul>121 </body>122 </html>

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



The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati

HTML is suitable for beginners because it is simple and easy to learn and can quickly see results. 1) The learning curve of HTML is smooth and easy to get started. 2) Just master the basic tags to start creating web pages. 3) High flexibility and can be used in combination with CSS and JavaScript. 4) Rich learning resources and modern tools support the learning process.

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

The article discusses the <iframe> tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

HTML defines the web structure, CSS is responsible for style and layout, and JavaScript gives dynamic interaction. The three perform their duties in web development and jointly build a colorful website.

WebdevelopmentreliesonHTML,CSS,andJavaScript:1)HTMLstructurescontent,2)CSSstylesit,and3)JavaScriptaddsinteractivity,formingthebasisofmodernwebexperiences.
