0

Here is the code of my HTML iPhone app: http://summerblast.pt/iphone/code.html

I would like the icons of the bar to have a link. Lets say the first btn called "Emissão" will redirect to http://www.summerblast.pt/player.html

How can I do That?

4

1 回答 1

0

ul使用 id转到您的标签,tabSelector在其下您会找到li每个标签的 。每个内容的周围li是一个a标签。如果您添加href="[insert link to site here]",图标的内容li和因此图标将是可点击的并链接到该站点。

已编辑标签的示例如下:<a data-bind="click: selectTab" href = "www.google.com">注意href

这是第一个图标的 li 的完整内容:

<li data-bind="attr: {'data-tabid': TabId}" data-tabid="1263865">
    <a data-bind="click: selectTab" href = "www.google.com">
        <img data-bind="attr: {src: TabId == $root.CurrentTab().topLevelSectionID ? TABU.getImageUrl(SelectedTabIcon, $element) : TABU.getImageUrl(TabIcon, $element)}" src="http://myapp.is/image/aHR0cDovL3RhYi1iYXNlLXVybC50aGVhcHBidWlsZGVyLmNvbS9hcHBidWlsZGVyYXNzZXRzL2Fzc2V0cy90YWJiYXJfaWNvbnMvaW9zX3NlbGVjdGVkLzMyMC9SZXNpc3RvcnMucG5n/0/0">
        <div data-bind="text: TabTitle">Emissão</div>
    </a>
</li>
于 2013-05-08T01:38:57.967 回答