


That is, the selection items are distributed in a circle of the ring.
Does anyone know how to do this?
If you know of a better looking website, I will go and learn from it. Thank you.
Reply to discussion (solution)
Just absolutely position the elements around a certain center, but what are the options you are talking about?
Let me give you an example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title> <style type="text/css" >#div1{ position:relative;height:800px; border:1px solid red;}#div1 div{ position:absolute;border:1px solid gray;}</style></head><body><div id="div1"><div><a href="">CSDN</a></div><div><a><img src="/static/imghwm/default1.png" data-src="http://c.csdn.net/bbs/t/5/i/pic_logo.gif" class="lazy" / alt="Please tell me how to make a pop-up ring selector? _html/css_WEB-ITnose" ></a></div><div>姓名<input size="5" /></div><div><select><option>选择</option></select></div><div>helloworld</div></div><script type="text/javascript" > var centerx = 400; //圆心X var centery = 300; //圆心Y var r = 300; //半径 var odivs = document.getElementById("div1").getElementsByTagName("DIV"); //图片集合 var cnt = odivs.length; //图片数 var da = 360 / cnt; //图片间隔角度 for (var i = 0; i < cnt; i++) { odivs[i].style.left = centerx + r * Math.cos(da * i / 180 * Math.PI) + "px"; odivs[i].style.top = centery + r * Math.sin(da * i / 180 * Math.PI) + "px"; } </script> </body> </html>
Sorry, I may not have described it clearly.
What I mean is that there is a ring on the pop-up layer. For example, the ring is divided into 3 equal parts, and some information is displayed on each segment. Users can select these 3 segments.
There is no way to make the ring itself using js. Can you just use a ring background image on the pop-up layer?
As for how many paragraphs it is divided into, I have a bunch of elements here. You can divide it into as many paragraphs as you want, just use a few elements, and you can change the displayed text or whatever.
Of course, if you want each word to be in Arrangement in a circle is impossible unless you dynamically create an element for each word.
As for what you said about how many paragraphs the user can choose, they always say I don’t understand.
What can users choose? In my mind, HTML only has select, checkbox and radio. I don’t know how to choose text.
If you have an idea, it would be best to make a picture. , otherwise people may not be able to guess what you mean.
Just create a background and define the click event in three parallel paragraphs.
What I mean
C:Documents and SettingsUserMy DocumentsQQ screenshot unnamed 10.png
How to upload a picture from local? I see that inserting a picture requires entering an http URL...
This is the effect of my avatar. thx.
If you have a few fixed columns, just use CSS absolute positioning. I didn’t write the left top in the style here. You can adjust it yourself. This is a background image and the positioning of several elements.
I am speechless after seeing this post~
I don’t quite understand. If there are no restrictions on flash, it is recommended to use flash to implement it
Do you mean that when you click on a certain part of the circle, the arc of the current part moves out or something? mean?
Let me tell you the most awesome method, make a picture and then draw hot spots. Hot spots support polygons, quack

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.

HTML is a language used to build web pages, defining web page structure and content through tags and attributes. 1) HTML organizes document structure through tags, such as,. 2) The browser parses HTML to build the DOM and renders the web page. 3) New features of HTML5, such as, enhance multimedia functions. 4) Common errors include unclosed labels and unquoted attribute values. 5) Optimization suggestions include using semantic tags and reducing file size.

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

The role of HTML is to define the structure and content of a web page through tags and attributes. 1. HTML organizes content through tags such as , making it easy to read and understand. 2. Use semantic tags such as, etc. to enhance accessibility and SEO. 3. Optimizing HTML code can improve web page loading speed and user experience.

HTMLisaspecifictypeofcodefocusedonstructuringwebcontent,while"code"broadlyincludeslanguageslikeJavaScriptandPythonforfunctionality.1)HTMLdefineswebpagestructureusingtags.2)"Code"encompassesawiderrangeoflanguagesforlogicandinteract

HTML, CSS and JavaScript are the three pillars of web development. 1. HTML defines the web page structure and uses tags such as, etc. 2. CSS controls the web page style, using selectors and attributes such as color, font-size, etc. 3. JavaScript realizes dynamic effects and interaction, through event monitoring and DOM operations.

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.

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.


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot 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

WebStorm Mac version
Useful JavaScript development tools

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

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool