这就是我在Obejective C中调用UIView DraggableViewBackground的方法,它工作得很好但是如何在Swift中做同样的事情
DraggableViewBackground *draggableBackgroundforurl = [[DraggableViewBackground alloc]initWithFrame:self.view.frame];
Run Code Online (Sandbox Code Playgroud)
我的DraggableViewBackground在Objective C中,我希望在单击按钮时将其设置为子视图
我的按钮被创建为相应行的每列.但它们相互重叠,我只能看到最后创建的按钮.我的.css存在一些问题,但我无法弄清楚是什么.我是HTML新手,CSS非常感谢您的帮助
的test.html
<html>
<link href="button_style.css" rel="stylesheet" type="text/css" />
<body>
<table align="center" id="scroll_tbl">
<tr>
<td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-right:20px;">
<a href='javascript:prevClick()'><img src="img/arrow_left.png" class="arrow" border="0" /> Previous</a>
</td>
<td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-left:20px;">
<a href='javascript:nextClick()'>Next <img src="img/arrow_right.png" class="arrow" border="0" /></a>
</td>
</tr>
<tr>
<td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-right:20px;">
<a href="#" class="button"><span>Follow</span></a>
</td>
<td style="background-color: rgba(0, 0, 0, 0.00); padding-top:5px; padding-bottom:5px; padding-right: 5px; padding-left:20px;">
<a href="#" class="button"><span>Follow</span></a> …
Run Code Online (Sandbox Code Playgroud)