In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Most people do not understand the knowledge points of this article "css how to display row serial values layout", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "css how to display row serial values layout" article.
Similar to the effect picture with ordered layout:
I. explanation of layout thinking
When you encounter such a layout, you may think of the use of the ordered tag ol li, but here DIVCSS5 tells you that because there are more browsers, different browsers have different display of the default sequence list of ol li, which is easy to cause browser compatibility problems, so when you encounter such an ordered layout, the simplest thing is to cut the serial number into a background picture. CSS layout as ul or ol background image to achieve the same typesetting layout effect.
But we usually use ul a lot, so although it's an ordered list, of course we also use ul li to implement this layout.
Second, the specific layout code of the example (HTML+CSS)
The case code layout is carried out on the basis of introducing the DIVCSS5 initialization template.
1. HTML code
Non-stop scrolling one data bar at a time DIV CSS Js scrolling special effect
The height of the parent container box div cannot be solved adaptively.
Why can't div css pages be centered horizontally in FF browsers?
Seven basic specifications for XHTML (div css) coding
Left logo right ad picture layout div css floating layout example
A simple navigation bar for DIV+CSS code layout
DIV CSS absolute positioning layout case position layout example
Ul li css interlaced color change css li list layout interlaced background color
2. CSS code:
Ul.array {margin:0 auto; width:300px; background:url (m-top.gif) no-repeat 0 5px}
Ul.array li {height:30px; line-height:30px; text-align:left; overflow:hidden
Width:100%; text-indent:28px}
3. Screenshot of effect
Browser effect screenshot CSS ordered list layout
4. Complete HTML source code
Ordered list layout DIVCSS5 online demo
Non-stop scrolling one data bar at a time DIV CSS Js scrolling special effect
The height of the parent container box div cannot be solved adaptively.
Why can't div css pages be centered horizontally in FF browsers?
Seven basic specifications for XHTML (div css) coding
Left logo right ad picture layout div css floating layout example
A simple navigation bar for DIV+CSS code layout
DIV CSS absolute positioning layout case position layout example
Ul li css interlaced color change css li list layout interlaced background color
5. Complete CSS code
@ charset "utf-8"
/ * DIVCSS5-CSS-www..com * /
Body, div, ul, li {margin:0; padding:0;font-style: normal
Font:12px/22px "\ 5B8B\ 4F53", Arial, Helvetica, sans-serif}
Ol, ul, li {list-style:none}
Img {border: 0; vertical-align:middle}
Body {color:#000000;background:#FFF; text-align:center}
A {color:#000000;text-decoration:none}
A:hover {color:#BA2636;text-decoration:underline}
Ul.array {margin:0 auto; width:300px; background:url (m-top.gif) no-repeat 0 5px}
Ul.array li {height:30px; line-height:30px; text-align:left
Overflow:hidden; width:100%; text-indent:28px}
The above is about "css how to display row serial value layout" this article content, I believe we all have a certain understanding, I hope the editor to share the content to help you, if you want to know more related knowledge content, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.