I want to add and subtract numbers through the addition and subtraction buttons on both sides of the number "0". I called the addition and subtraction style in css, but only the plus button can appear, as shown below:
Me I also replaced the minus sign style on the left with the same plus sign as on the right, and the following happened:
The html code is as follows:
span> )"> //Add button
"
Code about "btn-jian" and "btn-jia" in css:
span.btn-jia i:last-child,.addpulsbox span.btn-jiaNew i:last-child{-webkit-transform: rotate(90deg)}
span.btn-jia,span.btn-jiaNew,span.btn-jian,span.btn-jianNew{display:block;border-radius:50%;width:45px;height:45px }span.btn-jia s,span.btn-jiaNew s,span.btn-jian s,span.btn-jianNew
s{position:absolute;display:block;border-radius:50%;width:28px ;height:28px;top:0;left:50%;margin-left:-14px}.numiszero span.btn-jian,.numiszero
I don’t know how to solve this problem, please give me some advice! Thank you!
Reply to the discussion (solution)
Who can help me with the answer???
Solved, close the post
By the way, I’ll write down the poster’s ending plan so that someone can use it in the future. . .
It’s a calling problem on the html side. Change
to
and it’s good
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn