我想为div标签添加背景颜色,我参考了一些代码,但是我没有帮助我添加背景color.Now,div标签显示空白,我想在div标签中添加背景颜色,我不知道我做错了什么。
html
<body>
<div class="main">
<div class="header">
</div> <!-- end of header div -->
</div> <!-- end of main div -->
<
我可以在没有单独html文件的情况下向uiwebview添加文本并更改此视图中的文本和颜色吗?那么我在switch语句中定义html文件中的内容?我现在使用标签,但我不能在标签中有超过一种颜色,所以我需要使用html,因为核心文本看起来相当复杂。
switch (counter)
{
case 0:
titleLabel.text = @"needs to be more than one colour";
break;
case 1:
titleLabel.text = @"needs to be more