465 - Overflow

题意:处理两个大整数,判断有哪些数超出了int的取值范围

注意事项:

①使用istringstream()需要调用#include <sstream>函数

用法:istringstream对象可以绑定一行字符串,然后以空格为分隔符把该行分隔开来。

②int最大值为0x7fffffff,两个ff组成一个字节,恰好为四个字节


#include <iostream> #include <string> #include <sstream>//使用istringstream()需要调入的头文件 using namespace std; string getMaxStr() { int n=0x7fffffff; string s=""; while(n!=0) { s=(char)(n%10+'0')+s; n=n/10; } return s; } bool cmp(const string &a,const string &b) { int alen=a.size(); int blen=b.size(); if(alen==blen) { for(int i=0;i<alen;i++) if(a[i]!=b[i]) return a[i]>b[i]; } else { return alen>blen; } return false; } int main() { string a,op,b; string max_str=getMaxStr(); while(cin>>a>>op>>b) { bool over=false; cout<<a<<" "<<op<<" "<<b<<endl; while(a.size()>1 && a[0]=='0')//###,wa n多次,大整数问题记着清除前置零,判断为‘0’而不是0. a.erase(0,1); while(b.size()>1 && b[0]=='0') b.erase(0,1); if(cmp(a,max_str)) { cout<<"first number too big"<<endl; over=true; } if(cmp(b,max_str)) { cout<<"second number too big"<<endl; over=true; } if(over) { if(op=="+") cout<<"result too big"<<endl; else if(op=="*" && a!="0" && b!="0") cout<<"result too big"<<endl; } else { long long aa,bb,cc; istringstream(a)>>aa; istringstream(b)>>bb; if(op=="+") cc=aa+bb; else if(op=="*") cc=aa*bb; if(cc>0x7fffffff) cout<<"result too big"<<endl; } } return 0; }




<div class="wfPanelContainer" style="inset: 0px;"><div class="geDiagramContainer geDiagramBackdrop" tabindex="0" style="inset: 0px 0px 10px; touch-action: auto; cursor: default; overflow: auto;"><div style="position: absolute; border-width: 1px; overflow: hidden; left: 0px; top: 0px; width: 1298px; height: 643px; border-color: rgb(255, 255, 255); border-style: solid; background-color: rgb(255, 255, 255); background-image: none;" class="geBackgroundPage"></div><div class="wfGroupsContainer" id="wfGroupsContainer" style="top: 0px; left: 0px; width: 1287px; height: 644px; position: absolute;"></div><svg style="width: 1299px; height: 100%; display: block; min-width: 1299px; min-height: 644px; z-index: 2; position: absolute; background-image: none;"><g><g></g><g><g transform="translate(0.5,0.5)" style="visibility: visible;"><ellipse cx="102" cy="102" rx="46.5" ry="46.5" fill="#bff3c3" stroke="#5abd6b" pointer-events="all"></ellipse></g><g style=""><g transform="translate(57,96)"><foreignObject style="overflow:visible;" pointer-events="all" width="90" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 92px; text-align: center;" title="申请"><div class="wf-nodeName" title="申请"><div class="wf-word-line" id="wf-word-line-16" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">申请</div></div><div class="wf-nodeIcons" style="height: 16px;"><span class="icon-workflow-ceshi" style="color: rgb(90, 189, 107); float: right;"></span></div><div class="wf-nodeOperations" style="height: 16px;"><span class="icon-workflow-caozuohou" style="float: right;"></span><span class="icon-workflow-caozuoqian" style="float: left;"></span></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 280 55 L 335 105 L 280 155 L 225 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(227,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="组织负责人"><div class="wf-nodeName" title="组织负责人" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-17" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">组织负责人</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 450 55 L 505 105 L 450 155 L 395 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(397,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="上级组织负责人"><div class="wf-nodeName" title="上级组织负责人" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-18" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">上级组织负责人</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 620 55 L 675 105 L 620 155 L 565 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(567,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="间接上级组织负责人"><div class="wf-nodeName" title="间接上级组织负责人" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-19" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">间接上级组织负责人</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 790 55 L 845 105 L 790 155 L 735 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(737,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="资产会计"><div class="wf-nodeName" title="资产会计" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-20" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">资产会计</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 960 55 L 1015 105 L 960 155 L 905 105 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(907,99)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="财务主管"><div class="wf-nodeName" title="财务主管" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-21" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">财务主管</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 960 185 L 1015 235 L 960 285 L 905 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(907,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="财务总监"><div class="wf-nodeName" title="财务总监" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-22" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">财务总监</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 790 185 L 845 235 L 790 285 L 735 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(737,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="分管领导"><div class="wf-nodeName" title="分管领导" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-23" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">分管领导</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 620 185 L 675 235 L 620 285 L 565 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(567,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="总经理"><div class="wf-nodeName" title="总经理" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-24" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">总经理</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"><span class="icon-workflow-caozuohou" style="float: right;"></span><span class="icon-workflow-caozuoqian" style="float: left;"></span></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 450 185 L 505 235 L 450 285 L 395 235 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(397,229)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="财务会计制单"><div class="wf-nodeName" title="财务会计制单" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-25" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">财务会计制单</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><ellipse cx="272" cy="232" rx="46.5" ry="46.5" fill="#bff3c3" stroke="#5abd6b" pointer-events="all"></ellipse></g><g style=""><g transform="translate(227,226)"><foreignObject style="overflow:visible;" pointer-events="all" width="90" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 92px; text-align: center;" title="归档"><div class="wf-nodeName" title="归档"><div class="wf-word-line" id="wf-word-line-26" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">归档</div></div><div class="wf-nodeIcons" style="height: 16px;"><span class="icon-workflow-tingzhi" style="color: rgb(90, 189, 107); float: right;"></span></div><div class="wf-nodeOperations" style="height: 16px;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 790 340 L 845 390 L 790 440 L 735 390 Z" fill="#bff3c3" stroke="#5abd6b" stroke-miterlimit="10" pointer-events="all"></path></g><g style=""><g transform="translate(737,384)"><foreignObject style="overflow:visible;" pointer-events="all" width="107" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; white-space: normal; overflow-wrap: normal; margin-top: -15px; border: 1px solid transparent; width: 109px; text-align: center;" title="最高领导层审批"><div class="wf-nodeName" title="最高领导层审批" style="margin-top: 10px; padding: 0px 14px;"><div class="wf-word-line" id="wf-word-line-27" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">最高领导层审批</div></div><div class="wf-nodeIcons"></div><div class="wf-nodeOperations" style="height: 16px; width: 80%; margin-left: 10%;"></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 148 102 L 218.63 102" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 148 102 L 218.63 102" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 223.88 102 L 216.88 105.5 L 218.63 102 L 216.88 98.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 335 105 L 388.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 335 105 L 388.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 393.88 105 L 386.88 108.5 L 388.63 105 L 386.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 505 105 L 558.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 505 105 L 558.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 563.88 105 L 556.88 108.5 L 558.63 105 L 556.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 675 105 L 728.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 675 105 L 728.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 733.88 105 L 726.88 108.5 L 728.63 105 L 726.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 845 105 L 898.63 105" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 845 105 L 898.63 105" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 903.88 105 L 896.88 108.5 L 898.63 105 L 896.88 101.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 960 155 L 960 178.63" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 960 155 L 960 178.63" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 960 183.88 L 956.5 176.88 L 960 178.63 L 963.5 176.88 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 905 240 L 851.37 240" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 905 240 L 851.37 240" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 846.12 240 L 853.12 236.5 L 851.37 240 L 853.12 243.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 735 235 L 681.37 235" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 735 235 L 681.37 235" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 676.12 235 L 683.12 231.5 L 681.37 235 L 683.12 238.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 565 235 L 511.37 235" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 565 235 L 511.37 235" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 506.12 235 L 513.12 231.5 L 511.37 235 L 513.12 238.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 395 235 L 324.37 235" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 395 235 L 324.37 235" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 319.12 235 L 326.12 231.5 L 324.37 235 L 326.12 238.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 445 285 L 445 305 L 267 305 L 267 284.37" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 445 285 L 445 305 L 267 305 L 267 284.37" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 267 279.12 L 270.5 286.12 L 267 284.37 L 263.5 286.12 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 620 285 L 620 350 L 90 350 L 90 154.37" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 620 285 L 620 350 L 90 350 L 90 154.37" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 90 149.12 L 93.5 156.12 L 90 154.37 L 86.5 156.12 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible; cursor: default;"><path d="M 735 390 L 456 390 L 456 291.37" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 735 390 L 456 390 L 456 291.37" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 456 286.12 L 459.5 293.12 L 456 291.37 L 452.5 293.12 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><path d="M 960 285 L 960 390 L 851.37 390" fill="none" stroke="white" stroke-miterlimit="10" pointer-events="stroke" visibility="hidden" stroke-width="9"></path><path d="M 960 285 L 960 390 L 851.37 390" fill="none" stroke="#8c8c8c" stroke-miterlimit="10"></path><path d="M 846.12 390 L 853.12 386.5 L 851.37 390 L 853.12 393.5 Z" fill="#8c8c8c" stroke="#8c8c8c" stroke-miterlimit="10" pointer-events="all"></path></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><rect x="280" y="170" width="150" height="100" fill="none" stroke="white" pointer-events="stroke" visibility="hidden" stroke-width="9"></rect><rect x="280" y="170" width="150" height="100" fill="none" stroke="none" pointer-events="all"></rect></g><g style=""><g transform="translate(282,214)"><foreignObject style="overflow:visible;" pointer-events="all" width="147" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; overflow-wrap: normal; border: 1px solid transparent; white-space: pre-wrap; width: 149px; max-height: 110px; margin-top: 0px; overflow: hidden; text-align: center;" title="出售"><div class="wf-nodeName" title="出售" style="word-break: break-word; max-height: 100px;"><div class="wf-word-line" id="wf-word-line-28" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;white-space:pre-wrap;text-align:left;">出售</div></div></div></foreignObject></g></g><g transform="translate(0.5,0.5)" style="visibility: visible;"><rect x="280" y="270" width="150" height="100" fill="none" stroke="white" pointer-events="stroke" visibility="hidden" stroke-width="9"></rect><rect x="280" y="270" width="150" height="100" fill="none" stroke="none" pointer-events="all"></rect></g><g style=""><g transform="translate(282,314)"><foreignObject style="overflow:visible;" pointer-events="all" width="147" height="12"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(52, 94, 58); line-height: 1.2; vertical-align: top; overflow-wrap: normal; border: 1px solid transparent; white-space: pre-wrap; width: 149px; max-height: 110px; margin-top: 0px; overflow: hidden; text-align: center;" title="报废"><div class="wf-nodeName" title="报废" style="word-break: break-word; max-height: 100px;"><div class="wf-word-line" id="wf-word-line-29" xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;white-space:pre-wrap;text-align:left;">报废</div></div></div></foreignObject></g></g></g><g></g><g></g></g></svg></div></div> 参考这段代码 实现功能
11-25
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值