English 中文(简体)
我正试图在图像上做一个直观的位置,但每当屏幕重新布置时,就会改变其位置。
原标题:I am trying to make a dot placement on an image, but whenever the screen is resized the dot placement changes its location

该点在电话摄像机上,但每当屏幕重新定位直线变化的位置时。 我想确保,每当屏幕重新布置时,总线上下方,而是在电话摄像机上。 是否有任何人指责我在这里做什么错?

CSS 代码

.spec::before { /* TO MODIFY THE SPECS WRITINGS OF THE HEADER PHOTOS */
    content:   ;
    background: var(--secondary);
    width: 6em;
    height: 1px;
    position: absolute;
    bottom: -2.2em;
    left: 50%;
}

.phone .spec::before {
    transform:
        translateX(-145%) rotate(-45deg);
}

.tablet .spec::before {
    transform:
        translateX(-50%) rotate(45deg);
}

.dot {
    position: absolute; 
    bottom: -5em;
    height: 1.8em;
    width: 1.8em;
    border: 1px var(--primary) solid;
    border-radius: 50%;
    animation: expand 1s ease-in-out infinite;
}

.phone .dot {left: -30%;} 
.phone .dot {bottom: -240%;}/* change the dot placement */
.tablet .dot {left: 65%;}

.dot::before, .pagination a::before {
    content:   ;
    background: var(--accent);
    width: 50%;
    height: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: inherit;
}
问题回答

我认为,你所期待的是<条码>>地图

You can see how it work right there https://www.w3schools.com/html/html_images_imagemap.asp

If you want to add onClick Can I have an onclick event on a imagemap area element?

希望能帮助你们





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签