我试图弄清楚我做错了什么..在Chrome中我们有一堆包含图片的div标签..覆盖了#include <iostream>
#include <string>
#include <iomanip>
#include <cctype>
using namespace std;
int main() {
char ch;
int puncCount = 0;
int letterCount = 0;
int digitCount = 0;
int spaceCount = 0;
cout << "The characters which you'd like!" << endl;
cout << "Type a line with a single 'Q' to stop \n" << endl;
cin.get(ch);
while (ch != 'q')
{
letterCount += isalpha(ch);
puncCount += ispunct(ch);
digitCount += isalnum(ch);
spaceCount += isspace(ch);
}
cout << "Letter count is" << letterCount << endl;
cout << "Puncuation count is" << puncCount << endl;
cout << "Digit count is" << digitCount << endl;
cout << "Space count is" << spaceCount << endl;
return 0;
}
..
<svg>
在Firefox中,他们根本不工作,除非我取消嵌套div
<svg class="canvass graph-bg">
<svg>
STUFFF
</svg>
<div class="ui-widget-content">
STUFF
</div>
</svg>
答案 0 :(得分:0)
我将<div>
从<svg>
元素中拉出来后修复了这个问题,这是一个很大的帮助。
现在我们有了
<svg class="canvass graph-bg">
<svg>
STUFFF
</svg>
</svg>
<div class="ui-widget-content">
STUFF
</div>