我正在尝试将PT Sans添加到新闻稿中,但由于某种原因它没有加载我已经复制了几乎所有代码,但它无法正常工作.对于能提供帮助的人,我将非常感激.
这是CSS代码:
h1, h2, h3 {
font-family: 'PT Sans', sans-serif;
}
Run Code Online (Sandbox Code Playgroud)
和HTML代码:
<link href="http://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet" type="text/css">
Run Code Online (Sandbox Code Playgroud)
编辑:这是CSS的其余部分:
h1, h2, h3 {
font-family: 'PT Sans', sans-serif;
}
#logo{width:810px}
#saveDateText{
position:relative;
top:30px;
left:80px;
font-size:50px;
color:rgb(228,242,214)
}
#october{
position:relative;
top:0px;
left:90px;
font-size:35px;
color:rgb(228,242,214)
}
#raftLogo{
position:relative;
top:-125px;
left:550px;
}
#saveTheDate {
background-color:rgb(123, 190, 48);
height:170px;
width:810px;
}
#honoring {
position:relative;
background-color:rgb(9, 65, 30);
width:810px;
top:-30px;
font-size:20px;
height:400px;
}
#honoringTextDiv {
position:relative;
width:740px;
left:70px;
top:50px
}
#infoText {
color:white;
font-size:25px;
}
#honoringText { …Run Code Online (Sandbox Code Playgroud) 我正在尝试在单击按钮时更改选项卡视图.我有这个代码:
- (IBAction)startScratch:(id)sender {
_mainTabBar.tabBarController.selectedIndex = 1;
//Error: ^ Property tabBarController not found on type "NSTabView*"
}
Run Code Online (Sandbox Code Playgroud)
.h文件包含以下代码行:
@property (weak) IBOutlet NSTabView *mainTabBar;
- (IBAction)startScratch:(id)sender;
Run Code Online (Sandbox Code Playgroud)
我假设我应该用某些东西替换_mainTabBar,但如果是的话,那是什么?
当我尝试进行for循环时,编译器给出了一个错误.
for (int i = 0; i < 26; i++) { //Expected identifier or '(', highlights the word for
NSLog(@"Test");
}
Run Code Online (Sandbox Code Playgroud)
编辑:
以下是它之前的代码:
#import "editCodeTable.h"
@implementation editCodeTable
NSArray *languages;
NSArray *everything;
Run Code Online (Sandbox Code Playgroud) 我有一个类向量:vector<qANDa> spanish;我希望它返回长度,我正在使用代码:int a = spanish.length();,但它说,No member named 'length' in 'std::__1::vector<qANDa, std::__1::allocator<qANDa> >'.所以我基本上想知道为什么这是.